scsi: scsi-mq: Wait for .queue_rq() if necessary
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 23 Nov 2016 00:17:50 +0000 (16:17 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Dec 2016 22:01:28 +0000 (17:01 -0500)
commit7dbbf0fa1bf14c17900bb8057986b06db3822239
tree95caa3b38a4ab3f291ec587cf7dc8d8616764d9f
parentd2a145252c52792bc59e4767b486b26c430af4bb
scsi: scsi-mq: Wait for .queue_rq() if necessary

Ensure that if scsi-mq is enabled that scsi_internal_device_block()
waits until ongoing shost->hostt->queuecommand() calls have finished.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: James Bottomley <jejb@linux.vnet.ibm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Doug Ledford <dledford@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c