commit | 85b6c720b0931101c8bcc3a5abdc2b8514b0fb4b | [log] [tgz] |
---|---|---|
author | James Bottomley <James.Bottomley@steeleye.com> | Thu Aug 31 18:15:22 2006 -0400 |
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | Fri Sep 01 17:56:56 2006 -0400 |
tree | a6d2883ef3b4f40a71d59c9db0fda87d43419463 | |
parent | 86e33a296c2c9ed6eece0bfff4ac776f42040504 [diff] |
[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>