summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
authorMuthukumar Ratty <muthur@gmail.com>2012-06-29 19:31:49 +0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 11:58:39 +0400
commite81ca6fe85b77109a32489a5db82f575d51dfc98 (patch)
treea881c5b85b07525f28cc546dfde2038cd900cb45 /drivers/scsi/scsi_priv.h
parent6548b0e5b875a07e32e924b22a7df3669892c75a (diff)
downloadlinux-e81ca6fe85b77109a32489a5db82f575d51dfc98.tar.xz
[SCSI] block: Fix blk_execute_rq_nowait() dead queue handling
If the queue is dead blk_execute_rq_nowait() doesn't invoke the done() callback function. That will result in blk_execute_rq() being stuck in wait_for_completion(). Avoid this by initializing rq->end_io to the done() callback before we check the queue state. Also, make sure the queue lock is held around the invocation of the done() callback. Found this through source code review. Signed-off-by: Muthukumar Ratty <muthur@gmail.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Tejun Heo <tj@kernel.org> Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
0 files changed, 0 insertions, 0 deletions