summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGerald Britton <gbritton@alum.mit.edu>2007-05-19 10:18:22 -0700
committerChris Wright <chrisw@sous-sol.org>2007-06-11 11:36:50 -0700
commit810bd4c03e2ce7f12c112a94753e183065c0667d (patch)
treedeafd31e41440fe7acb4a6e2ee67bff5f0d912d5 /arch
parent14997a58803e4083e0124cc70345f65c7d5d8c73 (diff)
[PATCH] cciss: fix pci_driver.shutdown while device is still active
Fix an Oops in the cciss driver caused by system shutdown while a filesystem on a cciss device is still active. The cciss_remove_one function only properly removes the device if the device has been cleanly released by its users, which is not the case when the pci_driver.shutdown method is called. This patch adds a new cciss_shutdown function to better match the pattern used by various SCSI drivers: deactivate device interrupts and flush caches. It also alters the cciss_remove_one function to match and readds the __devexit annotation that was removed when cciss_remove_one was serving as the pci_driver.shutdown method. Signed-off-by: Gerald Britton <gbritton@alum.mit.edu> Acked-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions