Re: [PATCH 4/7] scsi: add scsi-mq helper for iterating over busy commands

2015-04-05 Thread Christoph Hellwig
On Fri, Apr 03, 2015 at 09:58:20AM -0600, Jens Axboe wrote: > This is basically just a wrapper around blk_mq_queue_busy_iter(), > so that LLDs don't have to deal with or worry about blk-mq hardware > queues. I'd prefer not to expose this to drivers, but if we do it needs to work for the !mq case.

[PATCH 4/7] scsi: add scsi-mq helper for iterating over busy commands

2015-04-03 Thread Jens Axboe
This is basically just a wrapper around blk_mq_queue_busy_iter(), so that LLDs don't have to deal with or worry about blk-mq hardware queues. Signed-off-by: Jens Axboe --- drivers/scsi/scsi_lib.c| 25 + include/scsi/scsi_device.h | 3 +++ 2 files changed, 28 insertio