]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] cciss: fix pci_driver.shutdown while device is still active
authorGerald Britton <gbritton@alum.mit.edu>
Sat, 19 May 2007 17:18:22 +0000 (10:18 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Jun 2007 18:36:50 +0000 (11:36 -0700)
commit810bd4c03e2ce7f12c112a94753e183065c0667d
treedeafd31e41440fe7acb4a6e2ee67bff5f0d912d5
parent14997a58803e4083e0124cc70345f65c7d5d8c73
[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>
drivers/block/cciss.c