]> Git Repo - linux.git/commit
nbd: don't update block size after device is started
authorMing Lei <[email protected]>
Wed, 28 Oct 2020 07:24:34 +0000 (15:24 +0800)
committerJens Axboe <[email protected]>
Thu, 29 Oct 2020 13:25:43 +0000 (07:25 -0600)
commitb40813ddcd6bf9f01d020804e4cb8febc480b9e4
treeb2562d2892b8ff2ea7790c8fa4b6ec925eec9986
parent4977d121bc9bc5138d4d48b85469123001859573
nbd: don't update block size after device is started

Mounted NBD device can be resized, one use case is rbd-nbd.

Fix the issue by setting up default block size, then not touch it
in nbd_size_update() any more. This kind of usage is aligned with loop
which has same use case too.

Cc: [email protected]
Fixes: c8a83a6b54d0 ("nbd: Use set_blocksize() to set device blocksize")
Reported-by: lining <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: Jan Kara <[email protected]>
Tested-by: lining <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/block/nbd.c
This page took 0.071296 seconds and 4 git commands to generate.