summaryrefslogtreecommitdiffstats
path: root/lib/idr.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-08-05 14:46:45 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-05 19:18:13 +0200
commit8d75d0eff6887bcac7225e12b9c75595e523d92d (patch)
tree99e3d91a3d183cd62f22ad87b036e9f3d02dc631 /lib/idr.c
parentMerge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/so... (diff)
downloadlinux-8d75d0eff6887bcac7225e12b9c75595e523d92d.tar.xz
linux-8d75d0eff6887bcac7225e12b9c75595e523d92d.zip
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 <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20210805124645.543797-1-yukuai3@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions