block: fix busy device checking in blk_drop_partitions again
mainline inclusion from mainline-v5.7-rc1 commit cb6b771b category: bugfix bugzilla: 186898, https://gitee.com/openeuler/kernel/issues/I5ALJL CVE: NA -------------------------------- The previous fix had an off by one in the bd_openers checking, counting the callers blkdev_get. Fixes: d3ef5536 ("block: fix busy device checking in blk_drop_partitions") Reported-by:Qian Cai <cai@lca.pw> Signed-off-by:
Christoph Hellwig <hch@lst.de> Tested-by:
Qian Cai <cai@lca.pw> Signed-off-by:
Jens Axboe <axboe@kernel.dk> Signed-off-by:
Li Nan <linan122@huawei.com> Reviewed-by:
Jason Yan <yanaijie@huawei.com> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>
Loading
Please sign in to comment