From: James Bottomley Date: Thu, 31 Aug 2006 22:15:22 +0000 (-0400) Subject: [SCSI] sd: fix cache flushing on module removal (and individual device removal) X-Git-Tag: v2.6.19-rc1~1266^2~19^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b6c720b0931101c8bcc3a5abdc2b8514b0fb4b;p=pandora-kernel.git [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 --- Reading git-diff-tree failed