diff options
author | Yu Kuai <[email protected]> | 2021-08-05 20:46:45 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-05 11:18:13 -0600 |
commit | 8d75d0eff6887bcac7225e12b9c75595e523d92d (patch) | |
tree | 99e3d91a3d183cd62f22ad87b036e9f3d02dc631 /scripts/mkcompile_h | |
parent | cc396d27d8d5884bbb555efd7783b9e9e2b41dc2 (diff) |
blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit()
If queue is dying while iolatency_set_limit() is in progress,
blk_get_queue() won't increment the refcount of the queue. However,
blk_put_queue() will still decrement the refcount later, which will
cause the refcout to be unbalanced.
Thus error out in such case to fix the problem.
Fixes: 8c772a9bfc7c ("blk-iolatency: fix IO hang due to negative inflight counter")
Signed-off-by: Yu Kuai <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/mkcompile_h')
0 files changed, 0 insertions, 0 deletions