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>
This commit is contained in:
committed by
James Bottomley
parent
24add1c432
commit
b391277a56
@ -1207,6 +1207,7 @@ int scsi_prep_fn(struct request_queue *q, struct request *req)
|
||||
ret = scsi_setup_blk_pc_cmnd(sdev, req);
|
||||
return scsi_prep_return(q, req, ret);
|
||||
}
|
||||
EXPORT_SYMBOL(scsi_prep_fn);
|
||||
|
||||
/*
|
||||
* scsi_dev_queue_ready: if we can send requests to sdev, return 1 else
|
||||
|
Reference in New Issue
Block a user