On 04/12/2013 08:52 AM, Laurent Barbe wrote:
> 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 <laur...@ksperis.com>

This one looks good (too).  And this time I've tested
it just to be sure I get no lockdep warnings.  Unless
I see any strangeness in my sanity testing (which I
don't expect) I'll commit this to the testing branch
later today.  Thanks a lot.

Reviewed-by: Alex Elder <el...@inktank.com>


> ---
>  drivers/block/rbd.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
> index 4daa400..5f88de9 100644
> --- a/drivers/block/rbd.c
> +++ b/drivers/block/rbd.c
> @@ -1883,6 +1883,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;
>  }
> 

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to