Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4044416ybv; Tue, 25 Feb 2020 12:03:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzthp4Dacf4+K9Z10lH588p+MKpOjeitH8MCDczL9KL5NufliORGS081xZKuNPpUd8Pgu6c X-Received: by 2002:a9d:4f17:: with SMTP id d23mr246645otl.170.1582661027920; Tue, 25 Feb 2020 12:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582661027; cv=none; d=google.com; s=arc-20160816; b=o8d4RV/k6luB3LziSQHs6EdUb37KOZaB04FqPaE/JZ88Mhs1bQC5aI2ltEhSoV5EqC dlYHfxDn7SW1mrjatxDl0IebLq8J1x8Q4kUfdB6VAOncDjtWDYyMTbSHOWiJX6quYMXB zWShhkvJiMcYqVN+MfoxC4hEDxeKClnhvnr5bBdklT/WU8fPnJVkpQ8feqiQjRTSWYV/ kdFDOTMjm79s6QtE3obJrK+ob69E/DXj6W6duaB7zkiM+K2uziqmiU8ZetFoDrmTkAj9 C/rJw9ebvAaz1I4yQF1eHND5kTS9R7pHuWonQuRhi9Ri0ArBTanAuJS6LgY6oSwPkkFn X/Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=67DQ2tSweyaKg/Y7z3kejPHwNjR9kHAbtdB3UyNuDvY=; b=CNF8TkRy50775e2gaxqhwc3ZZ8z4ibGumm3K6kN+y8z1OIEKBKTAiBDqO4Cazn2zo8 lmnNNFj6CBgVyc8ttsawtpuzfsJrncuHDw219OghXsGxjjmTT8qdQ7mhAPmHmomtKohj /LEnDQdxdtLbHIPe9lOzkzciztSILvHKG4wcjSIBZVTqd+Vk6d8omedJw1HuNDXfHLxj 9g3D+6q8/QmkvMIdjc+M3nFdi/yaLyuS+YvQGqe07W93gtv9xs11G88z/BcxBcw6XDMg 0N7fJ0fDv9mwX3CZsIY5YabuszywBE3sfpKZTjPwv2ncWG4Augz3F2CI33GPdott4GSM WaqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CHKrUn71; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si138157otk.73.2020.02.25.12.03.34; Tue, 25 Feb 2020 12:03: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=@amazon.com header.s=amazon201209 header.b=CHKrUn71; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731554AbgBYUB6 (ORCPT + 99 others); Tue, 25 Feb 2020 15:01:58 -0500 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:42130 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731487AbgBYUB6 (ORCPT ); Tue, 25 Feb 2020 15:01:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1582660918; x=1614196918; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=67DQ2tSweyaKg/Y7z3kejPHwNjR9kHAbtdB3UyNuDvY=; b=CHKrUn71uQkV8bNB3zWN2WGC6e9nxCojZHHQox7uVhma4Nbl0877TQUo +reuoUibBG9LdMKVvkTeUvHevaCqY6L9g3clpk50EupHIbTli5eyJxF17 4EMkU/yyghnUq2gSpg5tPTVRw530L9Ndj63p7KUPg9WdIfwj/ZyQU/tnQ Q=; IronPort-SDR: v4N10rnEAUYDisN5FtYxmYgQyFO7A3h7HpOOv2d5J4UPbO22NpQUyNVRv963Z8USuBBYDc81nx y4OC6fqFnx0g== X-IronPort-AV: E=Sophos;i="5.70,485,1574121600"; d="scan'208";a="18185712" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-c7c08562.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 25 Feb 2020 20:01:46 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-c7c08562.us-east-1.amazon.com (Postfix) with ESMTPS id 34471241B84; Tue, 25 Feb 2020 20:01:42 +0000 (UTC) Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 25 Feb 2020 20:01:42 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13d01UWB002.ant.amazon.com (10.43.161.136) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Feb 2020 20:01:42 +0000 Received: from localhost (10.2.75.237) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 25 Feb 2020 20:01:42 +0000 From: Balbir Singh To: , , CC: , , , , , Balbir Singh Subject: [PATCH v2 4/5] drivers/nvme/host/core.c: Convert to use set_capacity_revalidate_and_notify Date: Tue, 25 Feb 2020 20:01:28 +0000 Message-ID: <20200225200129.6687-5-sblbir@amazon.com> X-Mailer: git-send-email 2.16.6 In-Reply-To: <20200225200129.6687-1-sblbir@amazon.com> References: <20200225200129.6687-1-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org block/genhd provides set_capacity_revalidate_and_notify() for sending RESIZE notifications via uevents. This notification is newly added to NVME devices Signed-off-by: Balbir Singh --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index ada59df642d2..4699388c5260 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1810,7 +1810,7 @@ static void nvme_update_disk_info(struct gendisk *disk, ns->lba_shift > PAGE_SHIFT) capacity = 0; - set_capacity(disk, capacity); + set_capacity_revalidate_and_notify(disk, capacity, false); nvme_config_discard(disk, ns); nvme_config_write_zeroes(disk, ns); -- 2.16.6