Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1496831ybl; Wed, 8 Jan 2020 18:57:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyQHqnlmdbQtu4lcBDz+Cwjc3gBStHCuIHS0jw9i2rZeGGwdqCH+nERH+8AKvi7hjlj6n0M X-Received: by 2002:a9d:7f12:: with SMTP id j18mr7018981otq.17.1578538667827; Wed, 08 Jan 2020 18:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578538667; cv=none; d=google.com; s=arc-20160816; b=OHwJisG+Q7JIPchiR/Z2R/DjUPrKxnQmXfGu/eqipVEML2iQ1k0Rw818wkzO8Jgx3g aMnwu2W452oRXqj7vjQeHb7e5wadcsob1zEz1yjiIgOD13lrQt77Pd1Q9W7sXCGwrqhM vz6Tm6ugmgQSjEjMSd7+bMGKfkCHRgnv5Z8Cn+1skTqz+ZilAQMQISH6MdnnG5EQedF8 /XFlKXOjTG/+mhLF4H1aW8BSDGD84uupuTJ2bUR41mXZo+ntouI6q3ATK5RuP9GiSOwb T2fu2Z9f9LZTS/XLDpZwyCueSZBI+XE7FD1DkqFx07unpaxoH41ALvVBzCWHRwiqRw4t f5nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=UkfHdTmJJlai2EOzhsw+ZznpGVVKFCSeoOTXtC0IOPY=; b=yChsmt5ELYt4I9MhY/kkg1Su6havogRc1v1VEBDQJgSrmskXDuvnlAO1J0se2CA7+J 26x/79bLM8vUXZSDPti5PAYdDySWnzdAIPaiK8zXNjhtCTT+QwWMjGM51mbVwvyWsMsV td5pormGoAKHQYwJvh83HlxQD4t1UHFTKFv3q64p7UBnFJ07rUohx+qp0SHfgFAUewov TckU/q2aqaq65aaU24Kf0ABQkWtEq0SkxPRBtv0Z/q/1B0thma0gwSjWafPleBf47HVJ HKCDKZcYA4MLg02iqIwTtkoNJSZY41njSgv2tMuadBbB3FBAdxcF9+kRnm4P208TjLIR DGgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=dXa2DBns; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24si2811536otk.244.2020.01.08.18.57.35; Wed, 08 Jan 2020 18:57:47 -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; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=dXa2DBns; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbgAIC4u (ORCPT + 99 others); Wed, 8 Jan 2020 21:56:50 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:47680 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726913AbgAIC4u (ORCPT ); Wed, 8 Jan 2020 21:56:50 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0092rQiN135926; Thu, 9 Jan 2020 02:56:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2019-08-05; bh=UkfHdTmJJlai2EOzhsw+ZznpGVVKFCSeoOTXtC0IOPY=; b=dXa2DBnsNjk7TL8YUymzrg0GLgz4XOHOBEsHqVaYnFj0G8xJSUGrlV6Pnh1YtZYzsagr 5TQPp9v4GaTyQQjqyCVG+7eAuMAkHsle1w0cXDAyjEDvWeakRY+n7biP/EFkWPvfxcan 5O8OkfB8ZttPwKvYtTLkGooVAZaJj7waJX9ZJw0WS+BjRrhcRkdScykeiCxzPbfhbF24 0erD6clfGKovzBZb7ialjqoBakh7iLq8nSmFd/yiPKS7518Y/XLtBvMUMSQu+9dehZ9w 0cPAyZ+7FhgaXoAyg5xx3P8++QdwJrrrx/OKmVSkzS/YgRdnK/NW2DpOWCGN3ewmDazv hg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2xajnq7xjh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 02:56:34 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0092sTtD024251; Thu, 9 Jan 2020 02:54:34 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2xdmrx6uyk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jan 2020 02:54:32 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0092rf3S005091; Thu, 9 Jan 2020 02:53:42 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Jan 2020 18:53:41 -0800 To: Christoph Hellwig Cc: "Martin K. Petersen" , Balbir Singh , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, axboe@kernel.dk, ssomesh@amazon.com, jejb@linux.ibm.com, mst@redhat.com, Chaitanya.Kulkarni@wdc.com Subject: Re: [resend v1 5/5] drivers/scsi/sd.c: Convert to use disk_set_capacity From: "Martin K. Petersen" Organization: Oracle Corporation References: <20200102075315.22652-1-sblbir@amazon.com> <20200102075315.22652-6-sblbir@amazon.com> <20200108150612.GD10975@lst.de> Date: Wed, 08 Jan 2020 21:53:38 -0500 In-Reply-To: <20200108150612.GD10975@lst.de> (Christoph Hellwig's message of "Wed, 8 Jan 2020 16:06:12 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9494 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=975 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001090026 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9494 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001090026 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph, >> We already emit an SDEV_EVT_CAPACITY_CHANGE_REPORTED event if device >> capacity changes. However, this event does not automatically cause >> revalidation. > > Who is looking at these sdev specific events? (And who is looking > at the virtio/xenblk ones?) It makes a lot of sense to have one event > supported by all devices. But don't ask me which one would be the best.. Users typically have site-specific udev rules or similar. There is no standard entity handling these events. Sadly. I'm all for standardizing on RESIZE=1. However, we can't really get rid of the emitting existing SDEV* event without breaking existing setups. -- Martin K. Petersen Oracle Linux Engineering