summaryrefslogtreecommitdiffstats
path: root/block/bdev.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-11-02 10:07:05 +0800
committerJens Axboe <axboe@kernel.dk>2021-11-19 06:26:45 -0700
commit15c30104965101b8e76b24d27035569d6613a7d6 (patch)
treee5033b346313dc217878e56250db2ff47cd16dc4 /block/bdev.c
parent245a489e81e13dd55ae46d27becf6d5901eb7828 (diff)
downloadlinux-stable-15c30104965101b8e76b24d27035569d6613a7d6.tar.gz
linux-stable-15c30104965101b8e76b24d27035569d6613a7d6.tar.bz2
linux-stable-15c30104965101b8e76b24d27035569d6613a7d6.zip
blk-cgroup: fix missing put device in error path from blkg_conf_pref()
If blk_queue_enter() failed due to queue is dying, the blkdev_put_no_open() is needed because blkcg_conf_open_bdev() succeeded. Fixes: 0c9d338c8443 ("blk-cgroup: synchronize blkg creation against policy deactivation") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20211102020705.2321858-1-yukuai3@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bdev.c')
0 files changed, 0 insertions, 0 deletions