scsi: provide mq_ops->busy() hook
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Oct 2018 16:17:28 +0000 (10:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 02:47:40 +0000 (19:47 -0700)
commit8fcf28aa88070c4812dc18a38a55f11906ba75f1
treef076ad40a8e0d73c3e55baa678322a35a983a404
parent7da3819079f66a1da94b224c89ac88b29cea268e
scsi: provide mq_ops->busy() hook

Only the SCSI legacy path provides a way to check if target is
currently busy, provide the same for the MQ path.

Cc: linux-scsi@vger.kernel.org
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_lib.c