Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rnbd-srv: don't pass a holder for non-exclusive blkdev_get_by_path

Passing a holder to blkdev_get_by_path when FMODE_EXCL isn't set doesn't
make sense, so pass NULL instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20230608110258.189493-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
5ee60767 29499ab0

+1 -1
+1 -1
drivers/block/rnbd/rnbd-srv.c
··· 715 715 goto reject; 716 716 } 717 717 718 - bdev = blkdev_get_by_path(full_path, open_flags, THIS_MODULE, NULL); 718 + bdev = blkdev_get_by_path(full_path, open_flags, NULL, NULL); 719 719 if (IS_ERR(bdev)) { 720 720 ret = PTR_ERR(bdev); 721 721 pr_err("Opening device '%s' on session %s failed, failed to open the block device, err: %d\n",