Commit 6d125de4 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe

mtip32xx: Convert to use blk_mq_tagset_busy_iter

Only a single tags array anyway.
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 82b4552b
...@@ -3000,14 +3000,14 @@ static int mtip_service_thread(void *data) ...@@ -3000,14 +3000,14 @@ static int mtip_service_thread(void *data)
"Completion workers still active!"); "Completion workers still active!");
spin_lock(dd->queue->queue_lock); spin_lock(dd->queue->queue_lock);
blk_mq_all_tag_busy_iter(*dd->tags.tags, blk_mq_tagset_busy_iter(&dd->tags,
mtip_queue_cmd, dd); mtip_queue_cmd, dd);
spin_unlock(dd->queue->queue_lock); spin_unlock(dd->queue->queue_lock);
set_bit(MTIP_PF_ISSUE_CMDS_BIT, &dd->port->flags); set_bit(MTIP_PF_ISSUE_CMDS_BIT, &dd->port->flags);
if (mtip_device_reset(dd)) if (mtip_device_reset(dd))
blk_mq_all_tag_busy_iter(*dd->tags.tags, blk_mq_tagset_busy_iter(&dd->tags,
mtip_abort_cmd, dd); mtip_abort_cmd, dd);
clear_bit(MTIP_PF_TO_ACTIVE_BIT, &dd->port->flags); clear_bit(MTIP_PF_TO_ACTIVE_BIT, &dd->port->flags);
...@@ -4174,7 +4174,7 @@ static int mtip_block_remove(struct driver_data *dd) ...@@ -4174,7 +4174,7 @@ static int mtip_block_remove(struct driver_data *dd)
blk_mq_freeze_queue_start(dd->queue); blk_mq_freeze_queue_start(dd->queue);
blk_mq_stop_hw_queues(dd->queue); blk_mq_stop_hw_queues(dd->queue);
blk_mq_all_tag_busy_iter(dd->tags.tags[0], mtip_no_dev_cleanup, dd); blk_mq_tagset_busy_iter(&dd->tags, mtip_no_dev_cleanup, dd);
/* /*
* Delete our gendisk structure. This also removes the device * Delete our gendisk structure. This also removes the device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment