diff options
| author | Ming Lei <[email protected]> | 2017-08-02 00:01:45 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2017-08-02 14:23:57 +0000 |
| commit | 1ad43c0078b79a76accd0fe64062e47b3430dc6b (patch) | |
| tree | 480939827df51b046781e8d2f16def36f6412e0c /net/tipc/monitor.c | |
| parent | block, bfq: consider also in_service_entity to state whether an entity is active (diff) | |
| download | kernel-1ad43c0078b79a76accd0fe64062e47b3430dc6b.tar.gz kernel-1ad43c0078b79a76accd0fe64062e47b3430dc6b.zip | |
blk-mq: don't leak preempt counter/q_usage_counter when allocating rq failed
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.
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/tipc/monitor.c')
0 files changed, 0 insertions, 0 deletions
