Thread (2 messages) flat view 2 messages, 2 authors, 2017-08-02

Re: [PATCH V2] blk-mq: don't leak preempt counter/q_usage_counter when allocating rq failed

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-08-02 14:24:39

On 08/01/2017 06:01 PM, Ming Lei wrote:
From: Ming Lei <redacted>

When blk_mq_get_request() failed, preempt counter isn't
released, and blk_mq_make_request() doesn't release the counter
too.

This patch fixes the issue, and makes sure that preempt counter
is only held if rq is allocated successfully. The same policy is
applied on .q_usage_counter too.
Thanks, applied for this series.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help