block: fix busy device checking in blk_drop_partitions again
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: NQian Cai <cai@lca.pw> Signed-off-by: NChristoph Hellwig <hch@lst.de> Tested-by: NQian Cai <cai@lca.pw> Signed-off-by: NJens Axboe <axboe@kernel.dk>
Showing
想要评论请 注册 或 登录