diff options
author | Yu Kuai <yukuai3@huawei.com> | 2021-11-02 03:07:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-19 14:26:45 +0100 |
commit | 15c30104965101b8e76b24d27035569d6613a7d6 (patch) | |
tree | e5033b346313dc217878e56250db2ff47cd16dc4 /block/blk-flush.c | |
parent | block: avoid to quiesce queue in elevator_init_mq (diff) | |
download | linux-15c30104965101b8e76b24d27035569d6613a7d6.tar.xz linux-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/blk-flush.c')
0 files changed, 0 insertions, 0 deletions