]> err.no Git - linux-2.6/commit
[SCSI] sd: fix cache flushing on module removal (and individual device removal)
authorJames Bottomley <James.Bottomley@steeleye.com>
Thu, 31 Aug 2006 22:15:22 +0000 (18:15 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Fri, 1 Sep 2006 21:56:56 +0000 (17:56 -0400)
commit85b6c720b0931101c8bcc3a5abdc2b8514b0fb4b
treea6d2883ef3b4f40a71d59c9db0fda87d43419463
parent86e33a296c2c9ed6eece0bfff4ac776f42040504
[SCSI] sd: fix cache flushing on module removal (and individual device removal)

The fix isn't actually in sd: it's in scsi_device_get().  I modified it
to allow devices to be returned in SDEV_CANCEL, but not SDEV_DEL.  This
means that the device_remove_driver, which occurs in device_del() in
scsi_remove_device() after the device has gone into SDEV_CANCEL is now
effective at flushing the cache.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi.c