Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932982Ab3DJTaq (ORCPT ); Wed, 10 Apr 2013 15:30:46 -0400 Received: from mail-ia0-f172.google.com ([209.85.210.172]:53751 "EHLO mail-ia0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752182Ab3DJTao (ORCPT ); Wed, 10 Apr 2013 15:30:44 -0400 Message-ID: <5165BDE1.7010908@inktank.com> Date: Wed, 10 Apr 2013 14:30:41 -0500 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Laurent Barbe CC: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rbd: revalidate_disk upon rbd resize References: <1365609989-14493-1-git-send-email-laurent@ksperis.com> In-Reply-To: <1365609989-14493-1-git-send-email-laurent@ksperis.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 35 On 04/10/2013 11:06 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. Looks good to me. I'll take this in via the ceph-client tree. Thanks a lot. Reviewed-by: Alex Elder > Signed-off-by: Laurent Barbe > --- > drivers/block/rbd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c > index f556f8a..1963025 100644 > --- a/drivers/block/rbd.c > +++ b/drivers/block/rbd.c > @@ -2293,6 +2293,7 @@ static void rbd_update_mapping_size(struct rbd_device *rbd_dev) > dout("setting size to %llu sectors", (unsigned long long) size); > rbd_dev->mapping.size = (u64) size; > set_capacity(rbd_dev->disk, size); > + revalidate_disk(rbd_dev->disk); > } > > /* > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/