Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1597314ybh; Fri, 13 Mar 2020 04:10:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv8lLl4+DZRGmgpWviPpXZ+W1HkGU5mfY3CMBTBB4kp89axxD26DCIIn1JdgC0DFs9yJdZP X-Received: by 2002:a9d:4d0d:: with SMTP id n13mr10391588otf.76.1584097818130; Fri, 13 Mar 2020 04:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584097818; cv=none; d=google.com; s=arc-20160816; b=qfRyRJOJSTxKmn3UeavEMkcdkkrCe7mlx0Z/hQ7Kcny4gis8oVpFwi4e880KQfLR7C bfa+GlARedW/XWd30KcII3+F3FUsT7nAjz+EhOMFzPR0xS2d1KK8fPm/bLdF0PR5D0Oy OAa5+GmBDHUuSpA1e5lCWqKNBrp1sTHP7gpTYk3kyNphD7EAIsGiblnH1+el4HHobIg2 /f/8dU5dN8pFo1fdwknqxkyVn3wEMGDTtZS4ccFrwOP5gLM8SLnc2Y+dQinQ7a7WX5yX Opj8UCifPodCr5qtJt67YjiU0FJuNCPNEQkgVBwySjg6jIU4vCgcBS7V7yuIVlspuBw4 zZ1Q== 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=gA7XT1qrh60/GMisvQwexgLj9B6xZxFlgfn2VlpTtQI=; b=jqN9UZKVz65bQ2xKmKEqLhJdGhR2VyKTsKCSCl+uH29oO5yEQ3twnhnrrkw1kZBcMY vufmXzs5gjBAOtIvHhwVAADR7PnNGzJflqAp5AmrFqZFKxty4s2NCLA3bzcGEtrJzTXI OLRBowQomFo0jY9+q/pOv2NbSvs42yLYszFOSK89Bkp2hEYs+WdE/PXDaVc+rdaEcQJc Zk833BMXAAj1WBeKg88cgJPliAq6+T5x/xzmA9bU8CoxsxlqOc8hz0RbHKXdFoIwd4PC zmBCG9EswKcKRpwpPvhZ2c3c+i9EFB/maZW3jjwmm8zpd8nRO27fmLxH8cQMhVNVzmXZ eouw== 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 c19si731044ots.118.2020.03.13.04.10.05; Fri, 13 Mar 2020 04:10:18 -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 S1726597AbgCMLJP (ORCPT + 99 others); Fri, 13 Mar 2020 07:09:15 -0400 Received: from verein.lst.de ([213.95.11.211]:41995 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbgCMLJP (ORCPT ); Fri, 13 Mar 2020 07:09:15 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6D18968C4E; Fri, 13 Mar 2020 12:09:13 +0100 (CET) Date: Fri, 13 Mar 2020 12:09:13 +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, Someswarudu Sangaraju Subject: Re: [PATCH v3 1/5] block/genhd: Notify udev about capacity change Message-ID: <20200313110913.GA8264@lst.de> References: <20200313053009.19866-1-sblbir@amazon.com> <20200313053009.19866-2-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200313053009.19866-2-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:05AM +0000, Balbir Singh wrote: > Allow block/genhd to notify user space (via udev) about disk size changes > using a new helper set_capacity_revalidate_and_notify(), which is a wrapper > on top of set_capacity(). set_capacity_revalidate_and_notify() will only > notify via udev if the current capacity or the target capacity is not zero > and iff the capacity changes. > > Suggested-by: Christoph Hellwig > Signed-off-by: Someswarudu Sangaraju > Signed-off-by: Balbir Singh > Reviewed-by: Bob Liu Looks good, Reviewed-by: Christoph Hellwig