diff options
author | Hannes Reinecke <hare@suse.de> | 2009-06-18 03:57:18 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-21 13:01:27 -0400 |
commit | b391277a56b9eaaff4474339c703e574ed7fab5b (patch) | |
tree | 81964fbb0a7582e110a0dc06b4ddfce8508c1bd3 /drivers/scsi/sd.c | |
parent | 24add1c4326ce5ca22e7af8b84bb113cd48efac9 (diff) |
sd, sr: fix Driver 'sd' needs updating message
If a SCSI ULD driver sets blk_queue_prep_rq(), it should clean it
up itself on remove(), and not from the bus callbacks. This
removes the need to hook into bus->remove(), which should not
be used at the same time as driver->remove().
[jejb: fix sdkp initialisation problem due to mismerge]
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index e4ef11af18a2..5616cd780ff3 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -2123,6 +2123,7 @@ static int sd_remove(struct device *dev) | |||
2123 | 2123 | ||
2124 | async_synchronize_full(); | 2124 | async_synchronize_full(); |
2125 | sdkp = dev_get_drvdata(dev); | 2125 | sdkp = dev_get_drvdata(dev); |
2126 | blk_queue_prep_rq(sdkp->device->request_queue, scsi_prep_fn); | ||
2126 | device_del(&sdkp->dev); | 2127 | device_del(&sdkp->dev); |
2127 | del_gendisk(sdkp->disk); | 2128 | del_gendisk(sdkp->disk); |
2128 | sd_shutdown(dev); | 2129 | sd_shutdown(dev); |