summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-05-16 14:51:22 -0400
committerJens Axboe <axboe@kernel.dk>2018-05-16 12:54:13 -0600
commit76aa1d341257c1beb6ecfdd67fecdaac7e2aee25 (patch)
tree446cae256f1f0a8994dec00d32b01cbf8c856f90 /block/blk-cgroup.c
parentfe1f9e6659ca6124f500a0f829202c7c902fab0c (diff)
downloadlinux-76aa1d341257c1beb6ecfdd67fecdaac7e2aee25.tar.gz
linux-76aa1d341257c1beb6ecfdd67fecdaac7e2aee25.tar.bz2
linux-76aa1d341257c1beb6ecfdd67fecdaac7e2aee25.zip
nbd: call nbd_bdev_reset instead of bd_set_size on disconnect
We need to make sure we don't just set the size of the bdev to 0 while it's being used by a file system. We have the appropriate check in nbd_bdev_reset, simply use that helper instead. Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions