Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp503448pxk; Wed, 2 Sep 2020 07:28:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwykclDNL+YcdPeF42KwQFPzaK7/DTPNfFUyPkz1+OBxVKNW8HeHzmxt3S04/b+e9+mWJrZ X-Received: by 2002:a17:906:a219:: with SMTP id r25mr268840ejy.201.1599056899158; Wed, 02 Sep 2020 07:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599056899; cv=none; d=google.com; s=arc-20160816; b=c8PTua0GKzaTxrd6K8DV2mYiUXstWLVmMgk8YEFdowCWM4xSIX2mRTway7hL4rqFRQ QcVzSsjAMNbvSuDMCUZRF+KnPdZX8hvdXVVe63+g1xS+1DNBSKPU3dHEJOSA8TCFgL4I lPymozx/hQ8LgLsNGHuFvi+HwpqsuaP/R6AZrsihPglL/IBTaiL/2OM3+yya36PvogPh NqyBXkTlcANFKMSHIJ+7UU936m04LFi/RYnqJNysdDlYUFWBCn52IbRwGiDt0G+t4Ldo vVgSJptX6719+JDT8DvyNOUK1aCgY7GFhPEVtkB0g6TF0tBPsubhFFblVWoVUfikhhEI NE1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=14ox7AoWFV7H5eezSnPosQXA4Ch2lScJ8xsHfnvdcmE=; b=aKonyYmW+rgaNT+BCNffGnLP7SqPIqnYp2v0QYRT3GlEdA83snAmCCqdsrwwfw9CCy 8/PxY99CjIR7u+7bVa6NmVx9MC/s1WykRb7l8TDsnNoeU7Q16JUk2uBkCPUIwmbiJ1j7 yHqIw80T+H/95n1ioMImNqOoqFwdoKewA0F3Wsp5eDROhoSa4hY+sLcZ0amQcUFKCdrT zGWLg91k14jd2+COED/0D3UiuJd83CsWtJHu/4B9F/0sth4+frNZ150z18hqY4XNA0jW wh1+H/GFuwjCYvtIfZ8TQTol43nsXojGbVNafWRX0ANOqxj78XexUPC0KZ3Kx7AsgViW KG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=RORkOG08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si2877615ejx.644.2020.09.02.07.27.56; Wed, 02 Sep 2020 07:28:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=RORkOG08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbgIBOZi (ORCPT + 99 others); Wed, 2 Sep 2020 10:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbgIBONl (ORCPT ); Wed, 2 Sep 2020 10:13:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409BDC06121A; Wed, 2 Sep 2020 07:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=14ox7AoWFV7H5eezSnPosQXA4Ch2lScJ8xsHfnvdcmE=; b=RORkOG08fmVugfbQ99Gx7jozhC eAymlmT88pxoykAk+WjDRqF5npN0B1qcz9hVNqW1x+QP/uJrQ0FIcskDRlASpOifjxwjUuWJX524t j+Z5mDigF96Xx3Ersqs0qYENZ81LgQ2H2DWetvYe5fNOj1Vjw/+lVBYa2+eE/cDtSAfhM+LzChaKs Al6pvkpiZG+U1rhUNSNA+01EvLfyZyemwxnqTZQDhHL8svh0Rip7fErO9Q8RuBMh3ZITHV8T81eXr l1upawrNBJB+PbPic0lHl0e4CSgElro7RlYXf6VpOlFxMqqz5o83yR3RIUrkyZCV4FyYa8e8oSML6 +CyElTPA==; Received: from [2001:4bb8:184:af1:6a63:7fdb:a80e:3b0b] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDTVA-0005fh-T9; Wed, 02 Sep 2020 14:12:41 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Denis Efremov , Tim Waugh , Michal Simek , Borislav Petkov , "David S. Miller" , Song Liu , "Martin K. Petersen" , Finn Thain , Michael Schmitz , linux-m68k@lists.linux-m68k.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 15/19] md: use bdev_check_media_change Date: Wed, 2 Sep 2020 16:12:14 +0200 Message-Id: <20200902141218.212614-16-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200902141218.212614-1-hch@lst.de> References: <20200902141218.212614-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pcd driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 9562ef598ae1f4..27ed61197014ef 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -7848,7 +7848,7 @@ static int md_open(struct block_device *bdev, fmode_t mode) atomic_inc(&mddev->openers); mutex_unlock(&mddev->open_mutex); - check_disk_change(bdev); + bdev_check_media_change(bdev); out: if (err) mddev_put(mddev); -- 2.28.0