From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 06D804207B7 for ; Mon, 9 Nov 2020 12:36:28 +0100 (CET) Received: by mail-wr1-f71.google.com with SMTP id p16so1573222wrx.4 for ; Mon, 09 Nov 2020 03:30:20 -0800 (PST) Date: Mon, 9 Nov 2020 06:30:10 -0500 From: "Michael S. Tsirkin" To: Christoph Hellwig Message-ID: <20201109063004-mutt-send-email-mst@kernel.org> References: <20201106190337.1973127-1-hch@lst.de> <20201106190337.1973127-24-hch@lst.de> MIME-Version: 1.0 In-Reply-To: <20201106190337.1973127-24-hch@lst.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: Justin Sanders , Mike Snitzer , Jason Wang , linux-nvme@lists.infradead.org, Song Liu , dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, Ilya Dryomov , Jack Wang , Konrad Rzeszutek Wilk , Josef Bacik , nbd@other.debian.org, linux-raid@vger.kernel.org, Stefan Hajnoczi , ceph-devel@vger.kernel.org, Jens Axboe , linux-block@vger.kernel.org, "Martin K. Petersen" , Minchan Kim , linux-fsdevel@vger.kernel.org, Paolo Bonzini , Roger Pau =?iso-8859-1?Q?Monn=E9?= Subject: Re: [Drbd-dev] [PATCH 23/24] virtio-blk: remove a spurious call to revalidate_disk_size List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Nov 06, 2020 at 08:03:35PM +0100, Christoph Hellwig wrote: > revalidate_disk_size just updates the block device size from the disk > size. Thus calling it from revalidate_disk_size doesn't actually do > anything. > > Signed-off-by: Christoph Hellwig Acked-by: Michael S. Tsirkin > --- > drivers/block/virtio_blk.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > index 3e812b4c32e669..145606dc52db1e 100644 > --- a/drivers/block/virtio_blk.c > +++ b/drivers/block/virtio_blk.c > @@ -598,7 +598,6 @@ static void virtblk_update_cache_mode(struct virtio_device *vdev) > struct virtio_blk *vblk = vdev->priv; > > blk_queue_write_cache(vblk->disk->queue, writeback, false); > - revalidate_disk_size(vblk->disk, true); > } > > static const char *const virtblk_cache_types[] = { > -- > 2.28.0