From: Ming Lei <ming....@canonical.com>

CC: Christoph Hellwig <h...@infradead.org>
CC: Jens Axboe <ax...@kernel.dk>
CC: Tejun Heo <t...@kernel.org>
CC: Alexander Viro <v...@zeniv.linux.org.uk>
CC: Markus Pargmann <m...@pengutronix.de>
CC: Stefan Weinhuber <w...@de.ibm.com>
CC: Stefan Haberland <stefan.haberl...@de.ibm.com>
CC: Sebastian Ott <seb...@linux.vnet.ibm.com>
CC: Fabian Frederick <f...@skynet.be>
CC: Ming Lei <ming....@canonical.com>
CC: David Herrmann <dh.herrm...@gmail.com>
CC: Mike Galbraith <bitbuc...@online.de>
CC: Andrew Morton <a...@linux-foundation.org>
CC: Peter Zijlstra <pet...@infradead.org>
CC: nbd-gene...@lists.sourceforge.net
CC: linux-s...@vger.kernel.org
Signed-off-by: Ming Lei <ming....@canonical.com>
Signed-off-by: Jarod Wilson <ja...@redhat.com>
---
 drivers/block/nbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index a98c41f..7e9d26e 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -734,7 +734,7 @@ static int __nbd_ioctl(struct block_device *bdev, struct 
nbd_device *nbd,
                bdev->bd_inode->i_size = 0;
                set_capacity(nbd->disk, 0);
                if (max_part > 0)
-                       ioctl_by_bdev(bdev, BLKRRPART, 0);
+                       blkdev_reread_part(bdev);
                if (nbd->disconnect) /* user requested, ignore socket errors */
                        return 0;
                return nbd->harderror;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to