[Nbd] [PATCH 4/6] block: nbd: convert to blkdev_reread_part()
- To: Jens Axboe <axboe@...161...>, linux-kernel@...25..., Christoph Hellwig <hch@...1270...>, Tejun Heo <tj@...1285...>
- Cc: nbd-general@lists.sourceforge.net, linux-s390@...25..., Ming Lei <ming.lei@...1301...>, Stefan Haberland <stefan.haberland@...1296...>, Sebastian Ott <sebott@...1294...>, Jarod Wilson <jarod@...696...>, Fabian Frederick <fabf@...1980...>, Alexander Viro <viro@...1300...>, David Herrmann <dh.herrmann@...17...>, Andrew Morton <akpm@...133...>
- Subject: [Nbd] [PATCH 4/6] block: nbd: convert to blkdev_reread_part()
- From: Ming Lei <ming.lei@...1301...>
- Date: Sun, 5 Apr 2015 15:24:46 +0800
- Message-id: <1428218688-4092-5-git-send-email-ming.lei@...1301...>
- In-reply-to: <1428218688-4092-1-git-send-email-ming.lei@...1301...>
- References: <1428218688-4092-1-git-send-email-ming.lei@...1301...>
Signed-off-by: Ming Lei <ming.lei@...1301...>
---
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.7.9.5
Reply to: