diff options
author | Josef Bacik <jbacik@fb.com> | 2017-10-09 13:12:10 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-09 12:29:22 -0600 |
commit | 639812a1ed9bf49ae2c026086fbf975339cd1eef (patch) | |
tree | 8159e04a521c4345eea2d6d47be9e2995d0b8f62 /fs/direct-io.c | |
parent | 09aa97c78a784df2f781ff03b57b7dd6f1339edc (diff) | |
download | linux-639812a1ed9bf49ae2c026086fbf975339cd1eef.tar.bz2 |
nbd: don't set the device size until we're connected
A user reported a regression with using the normal ioctl interface on
newer kernels. This happens because I was setting the device size
before the device was actually connected, which caused us to error out
and close everything down. This didn't happen on netlink because we
hold the device lock the whole time we're setting things up, but we
don't do that for the ioctl path. This fixes the problem.
Cc: stable@vger.kernel.org
Fixes: 29eaadc ("nbd: stop using the bdev everywhere")
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions