Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp862643ybl; Wed, 8 Jan 2020 07:08:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwOirBZro4o6oiBLhsSsRB3EwU92TX+6KjvHtyolgA7EgBgfflDmgDlaL0EUtBm6tGxEvWH X-Received: by 2002:aca:3182:: with SMTP id x124mr3485082oix.170.1578496099858; Wed, 08 Jan 2020 07:08:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578496099; cv=none; d=google.com; s=arc-20160816; b=vCBLBenvrnqB9q72Jr14QFRv/RxeS2hgj83wJJLVu6Z2TAHHa22FB2jtU8x3UeB4yq ZQirg1F1DYU3AqpA983dg7ekPoltEW4TwiIIpcOjLBwC/aMy8n9BOfmTFTeztH6YCOm3 JfPUl7bQnTmtx3wiinB73lHKB2dSqHfJkdZ/3AFg8+FYdOzs8/lVXux0wA/S9Xf6TPXO qLEQBkhtZfjGm9POMiKgTlrYlZBOFK+2PdpPat3oOehGyTe1rz/DPYqmYmbNtHv/1kmj f8LUafB5Yrctolz4ndbFOfFYovjIliPFv/ezoFlbfCS6ymyrANfAhEumHnS9tRTPnn7D iwXg== 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=jAh8PF2AIfQGgFdJWub8z9wmdL9b5wi7V8XY2rIm7Vw=; b=TfMWE0OMw/kMCVEMTn+zFx87drp2+O59bygDtAx965/QavrgdEqX3F9UKMk2yyDbCO IymYCW9K08eVYkrjVG/gvFEahVD5nUnj33C1XNa7h91kXFb/32crVaBipjFT0PslSBBY EPm460UzK126NeKozoJLcCAKPtdQv0q1mvAHBKBMkXaUxyz3dW8RCZAFCWc+UfQvwBsI kQp+H75iOZdLTV6yj6Xilv5hE6g3Lv9zSL0qTsPDOyiniXlUFF0Pjv+uF/gcs5RmeMBw WjGXArAhOG3s5TK8xTplC9BR0BqAAlBKefWe9vSHHO79CD0gO2IOboEcUZlb2T6syT4o bXzw== 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 j71si1905887oib.213.2020.01.08.07.08.04; Wed, 08 Jan 2020 07:08:19 -0800 (PST) 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 S1728537AbgAHPEb (ORCPT + 99 others); Wed, 8 Jan 2020 10:04:31 -0500 Received: from verein.lst.de ([213.95.11.211]:49685 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbgAHPEb (ORCPT ); Wed, 8 Jan 2020 10:04:31 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 4526468BFE; Wed, 8 Jan 2020 16:04:28 +0100 (CET) Date: Wed, 8 Jan 2020 16:04:28 +0100 From: "hch@lst.de" To: "Martin K. Petersen" Cc: "Singh, Balbir" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "Sangaraju, Someswarudu" , "jejb@linux.ibm.com" , "hch@lst.de" , "axboe@kernel.dk" , "mst@redhat.com" , "linux-nvme@lists.infradead.org" , "Chaitanya.Kulkarni@wdc.com" Subject: Re: [resend v1 1/5] block/genhd: Notify udev about capacity change Message-ID: <20200108150428.GB10975@lst.de> References: <20200102075315.22652-1-sblbir@amazon.com> <20200102075315.22652-2-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Jan 07, 2020 at 10:15:34PM -0500, Martin K. Petersen wrote: > > Balbir, > > > I did this to avoid having to enforce that set_capacity() implied a > > notification. Largely to control the impact of the change by default. > > What I thought. I'm OK with set_capacity_and_notify(), btw. To some extent it might make sense to always notify from set_capacity and have a set_capacity_nonotify if we don't want to notify, as in general we probably should notify unless we have a good reason not to.