[PATCH] blk-mq: Fix queue usage on failed request allocation

Ming Lei ming.lei at redhat.com
Mon Aug 14 19:46:20 PDT 2017


On Mon, Aug 14, 2017 at 04:40:11PM -0400, Keith Busch wrote:
> blk_mq_get_request() does not release the callers queue usage counter
> when allocation fails. The caller still needs to account for its own
> queue usage when it is unable to allocate a request.
> 
> Fixes: 1ad43c0078b7 ("blk-mq: don't leak preempt counter/q_usage_counter when allocating rq failed")
> 
> Reported-by: Max Gurtovoy <maxg at mellanox.com>
> Signed-off-by: Keith Busch <keith.busch at intel.com>

Reviewed-by: Ming Lei <ming.lei at redhat.com>

-- 
Ming



More information about the Linux-nvme mailing list