]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: update size when connected
authorJosef Bacik <jbacik@fb.com>
Wed, 16 May 2018 18:51:18 +0000 (14:51 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 May 2018 18:54:07 +0000 (12:54 -0600)
commit4064c3b86b289a866e801954bd9585c9281c0322
tree0d35e825b5957ac13ff980194964196bb08a01a8
parent7769a20148c1d4e77769449ae4ccff6b058eab8f
nbd: update size when connected

I messed up changing the size of an NBD device while it was connected by
not actually updating the device or doing the uevent.  Fix this by
updating everything if we're connected and we change the size.

cc: stable@vger.kernel.org
Fixes: b8d12a8 ("nbd: don't set the device size until we're connected")
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c