From: Laurent Barbe Date: Wed, 10 Apr 2013 22:47:46 +0000 (-0500) Subject: rbd: revalidate_disk upon rbd resize X-Git-Tag: v3.10-rc1~81^2~75 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d98df63ea7e87d5df4dce0cece0210e2a777ac00;p=karo-tx-linux.git 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 Reviewed-by: Alex Elder --- 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; }