[SCSI] fix q->lock not held warning when target is busy
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 9 Apr 2009 20:57:10 +0000 (15:57 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 14:48:10 +0000 (09:48 -0500)
commitb4efdd586bc08cdf5977cad0a90091f44546a930
treef76209d5cdc4c7dfd296a0c8c0ec6c192610600b
parente832b3ca653895d479c872f995d0a31a0b0bdecd
[SCSI] fix q->lock not held warning when target is busy

We cannot call blk_plug_device from scsi_target_queue_ready
because the q lock is not held. And we do not need to call
it from there because when we return 0, the scsi_request_fn
not_ready handling will plug the queue for us if needed.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_lib.c