diff options
author | Keith Busch <[email protected]> | 2017-08-14 16:40:11 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-08-15 07:22:34 -0600 |
commit | 3280d66a6363af0df0441709bc0bc302bd9a2510 (patch) | |
tree | 3287661883d9a26da45c9c2b6a524c75e4cc0eda /lib/memory-notifier-error-inject.c | |
parent | ef954844c7ace62f773f4f23e28d2d915adc419f (diff) |
blk-mq: Fix queue usage on failed request allocation
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 <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Tested-by: Max Gurtovoy <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions