Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1598515ybh; Fri, 13 Mar 2020 04:11:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vukXtYU3GScmLZZTQD2WnM8UGYeW/2WN9Qd1re+iptGofrHFipPy+NlplrLvUBWi9jIpmoq X-Received: by 2002:a05:6830:19ec:: with SMTP id t12mr3868854ott.24.1584097883497; Fri, 13 Mar 2020 04:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584097883; cv=none; d=google.com; s=arc-20160816; b=uBH5j5pz62SvAqhmhcugDOaGKEGZL/JZDbmeIh5NzMdiD4ucNcsVApi/+wNYp/LUko UGRb1BZADBUsk/tWgZrau7jHhsoAQMEu5slHHtwBQXcH7YSMrCOYDC4QaIkX85D6CGzD 67Gc1NXkD8zCiZjWX4iEUStqIVJUUwg9ySfPIjETsRGAjyemXdBO2nRN+AYJI0lKVIRL uGm1c7lQYRUEvdWwBkWOr/AhJwHg6Hwj18khMIi5SBB8TwKvc+UVBRwGuFF3vUcihUXM y8p4FtOH4LsZESeHyQRvaPXDZr60XI454zEgGXC2A6eSwXaFl8gnDiuAemQsnLXwrlu3 UNLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Wp0+T02gV1GYCDv9g4lk0ffz7/UDPwsgOGQGfu3nzSY=; b=uIrx0O7B6Fc/z7GWw8IiqUXCaZ1gFO7QtCDn3gYA2Gj0lEE/N4psCMFZ9WUG0bb+Rf uFwOQTaLHKVr00GOuSSLltUOE6qt4CJ+OttSuPhGt/Hg8odE0jFkp+ngNLJJHlnuPZFx RnymaQkigpStcWpZBHT0Wf/EHH0FpldpJOxvULmFwsmq5tb515rzxUgQndmSHqPZS1Xi J9FDt3BgKSPUYcn8fQEGFLzjW34WkD29KHAwBCahUULd2M87bcRV73/YzJeUqQS5F3+R iEK/oLmqsaBscyiPgolammmNM4mavbJyCT6xfpNq3PjuNpWBpRvacQxax/RiHNATTRM9 Fhzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a185si4413779oii.252.2020.03.13.04.11.10; Fri, 13 Mar 2020 04:11:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726582AbgCMLKX (ORCPT + 99 others); Fri, 13 Mar 2020 07:10:23 -0400 Received: from verein.lst.de ([213.95.11.211]:42016 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgCMLKX (ORCPT ); Fri, 13 Mar 2020 07:10:23 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9937A68C4E; Fri, 13 Mar 2020 12:10:20 +0100 (CET) Date: Fri, 13 Mar 2020 12:10:20 +0100 From: Christoph Hellwig To: Balbir Singh Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, axboe@kernel.dk, Chaitanya.Kulkarni@wdc.com, hch@lst.de Subject: Re: [PATCH v3 2/5] virtio_blk.c: Convert to use set_capacity_revalidate_and_notify Message-ID: <20200313111020.GB8264@lst.de> References: <20200313053009.19866-1-sblbir@amazon.com> <20200313053009.19866-3-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200313053009.19866-3-sblbir@amazon.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 05:30:06AM +0000, Balbir Singh wrote: > block/genhd provides set_capacity_revalidate_and_notify() for sending RESIZE > notifications via uevents. > > Signed-off-by: Balbir Singh > --- > drivers/block/virtio_blk.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > index 0736248999b0..f9b1e70f1b31 100644 > --- a/drivers/block/virtio_blk.c > +++ b/drivers/block/virtio_blk.c > @@ -388,18 +388,15 @@ static void virtblk_update_capacity(struct virtio_blk *vblk, bool resize) > cap_str_10, > cap_str_2); > > - set_capacity(vblk->disk, capacity); > + set_capacity_revalidate_and_notify(vblk->disk, capacity, true); Shouldn't the last argument be set to the resize argument passed to this function?