[PATCH 1/3] block: introduce blk_queue_nr_active()

Ming Lei ming.lei at redhat.com
Wed Sep 27 02:49:24 PDT 2023


On Mon, Sep 25, 2023 at 12:31:21PM -0400, Ewan D. Milne wrote:
> Returns a count of the total number of active requests
> in a queue.  For non-shared tags (the usual case) this is
> the sum of nr_active from all of the hctxs.

hctx->nr_active is only updated if BLK_MQ_F_TAG_QUEUE_SHARED is true
and blk_mq_is_shared_tags() is false, so hctx->nr_active isn't
available if BLK_MQ_F_TAG_QUEUE_SHARED is false(the usual case?).


Thanks,
Ming




More information about the Linux-nvme mailing list