Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp862686ybl; Wed, 8 Jan 2020 07:08:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzrSV8DuznYQ/CaGU30EMAdLMQUH6neyuuJAVMJrIHQKnaZqhFLQTV5hPcQ85WWiX6Tj7pB X-Received: by 2002:a9d:674f:: with SMTP id w15mr4524071otm.243.1578496101673; Wed, 08 Jan 2020 07:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578496101; cv=none; d=google.com; s=arc-20160816; b=LMNWOdyf6v34uHktNuED1r37BmwjYyG6qQibwXPMYbRaT77Ess6MzOp/G08v/h+Mxp 09AiFIkgn0D3wjHbAhXt8GP984mtONqJJf4uPdjtect0TDVVjEMkMdK2bO6G7ry+MHmq ZP7656k6PaeHSopOcTyQc6O+1EztkeJtrDdOoVX6cYnb1prpiYb4Wqgsh+E4rV/j2o1u x5458Z3ywwdzfGO3G+oawgsxa4E8GIyMKzVpX3hqFPkMRIrH6fwx8VXqnP2YzVrPnh1w XrmHVXZGuR3DX+dHOiTAM9YfAXb7NRn6xTr05vGQKtdWmV8SpECwTqnpcnRb1Ap7BkgD AnkQ== 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=82nVyi46aeY2/XpQwFUMhOskS/DBp655v3WWO2k8Q10=; b=u731v99ghJAxJzaQcfJR8T9ZvtG2bgYqTqfXGyg9ZKMCCisPUwaki52Rojy2rDhyft e0IZ5n2qdaVHJxU8Nfz3LGSNjmRG7sykEFrG1LIVcCmu7Av7vQh7vo06ZgUNLKn/F7Qs OJtAhTJ+nl1bz/b+mAlgrYrTlJ+yvorbiIAU/W/ZNeM2u15dVUwzmFRKsshjjs0M6Us/ VXpSU1cD5tSLCdh+3e6UCRrZTWvvxBoTy0YD4Bf8s9dWyRgyJ+PA/RoBCb7XpuSh35IW 5y/rsSL9wsACxfhLSJYKpXq+Z/kvp3zS68FdF/JDGBLed5Yu3bugvVfuix798FRBbTM8 rG8Q== 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 l78si1844317oih.182.2020.01.08.07.08.06; Wed, 08 Jan 2020 07:08:21 -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 S1728603AbgAHPEu (ORCPT + 99 others); Wed, 8 Jan 2020 10:04:50 -0500 Received: from verein.lst.de ([213.95.11.211]:49690 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgAHPEt (ORCPT ); Wed, 8 Jan 2020 10:04:49 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 27CE368BFE; Wed, 8 Jan 2020 16:04:48 +0100 (CET) Date: Wed, 8 Jan 2020 16:04:47 +0100 From: "hch@lst.de" To: "Singh, Balbir" Cc: "linux-kernel@vger.kernel.org" , "Chaitanya.Kulkarni@wdc.com" , "linux-block@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "hch@lst.de" , "jejb@linux.ibm.com" , "mst@redhat.com" , "axboe@kernel.dk" , "Sangaraju, Someswarudu" Subject: Re: [resend v1 4/5] drivers/nvme/host/core.c: Convert to use disk_set_capacity Message-ID: <20200108150447.GC10975@lst.de> References: <20200102075315.22652-1-sblbir@amazon.com> <20200102075315.22652-5-sblbir@amazon.com> <1b88bedc6d5435fa7154f3356fa3f1a3e6888ded.camel@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b88bedc6d5435fa7154f3356fa3f1a3e6888ded.camel@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 Mon, Jan 06, 2020 at 12:46:26AM +0000, Singh, Balbir wrote: > On Sat, 2020-01-04 at 22:27 +0000, Chaitanya Kulkarni wrote: > > Quick question here if user executes nvme ns-rescan /dev/nvme1 > > will following code result in triggering uevent(s) for > > the namespace(s( for which there is no change in the size ? > > > > If so is that an expected behavior ? > > > > My old code had a check to see if old_capacity != new_capacity as well. > I can redo those bits if needed. > > The expected behaviour is not clear, but the functionality is not broken, user > space should be able to deal with a resize event where the previous capacity > == new capacity IMHO. I think it makes sense to not bother with a notification unless there is an actual change.