Skip to content
Snippets Groups Projects
Commit 85b6c720 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley
Browse files

[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: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 86e33a29
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment