Skip to content

Commit c4d2519

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: don't autoload drivers on blk-cgroup configuration
Loading a driver just to configure blk-cgroup doesn't make sense, as that assumes and already existing device. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christian Brauner <brauner@kernel.org> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20250423053810.1683309-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5f33b52 commit c4d2519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ int blkg_conf_open_bdev(struct blkg_conf_ctx *ctx)
797797
return -EINVAL;
798798
input = skip_spaces(input);
799799

800-
bdev = blkdev_get_no_open(MKDEV(major, minor), true);
800+
bdev = blkdev_get_no_open(MKDEV(major, minor), false);
801801
if (!bdev)
802802
return -ENODEV;
803803
if (bdev_is_partition(bdev)) {

0 commit comments

Comments
 (0)