summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorLaurent Barbe <laurent@ksperis.com>2013-04-10 17:47:46 -0500
committerSage Weil <sage@inktank.com>2013-05-01 21:19:12 -0700
commitd98df63ea7e87d5df4dce0cece0210e2a777ac00 (patch)
tree58ee9789a18c01c4f625719ffbb61fc71aef196a /drivers/block
parentf1a4739f333b519fe041e1ad81d9b31c94b9d6a3 (diff)
rbd: revalidate_disk upon rbd resize
If rbd disk is open and rbd resize is done, new size is not visible by filesystem. Like is done in virtio-blk and dm driver, revalidate_disk() permits to update the bd_inode size. Signed-off-by: Laurent Barbe <laurent@ksperis.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 8a7216d784d7..b2819deced6b 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2781,6 +2781,7 @@ static int rbd_dev_refresh(struct rbd_device *rbd_dev, u64 *hver)
else
ret = rbd_dev_v2_refresh(rbd_dev, hver);
mutex_unlock(&ctl_mutex);
+ revalidate_disk(rbd_dev->disk);
return ret;
}