# Re: \[PATCH\] blk-mq: Swap two calls in blk\_mq\_exit\_queue()

- From: Jens Axboe \<axboe@kernel.dk\>
- Date: 2021-05-14 14:59:48 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/05/6402669
- Thread: https://ratatoskr.run/linux-block/2021/05/6402655/t.md

```text
On 5/13/21 11:15 AM, Bart Van Assche wrote:
> If a tag set is shared across request queues (e.g. SCSI LUNs) then the
> block layer core keeps track of the number of active request queues in
> tags->active_queues. blk_mq_tag_busy() and blk_mq_tag_idle() update that
> atomic counter if the hctx flag BLK_MQ_F_TAG_QUEUE_SHARED is set. Make
> sure that blk_mq_exit_queue() calls blk_mq_tag_idle() before that flag is
> cleared by blk_mq_del_queue_tag_set().

Applied, thanks.


-- 
Jens Axboe

```
