Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1980158ybh; Tue, 14 Jul 2020 12:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwPT1GJUHalWD19DBTPk7pMYmzdzK5WyFSf70MwTHMqAzUadY5k30Smx8cKHQeReSD1aEy X-Received: by 2002:a50:fc97:: with SMTP id f23mr5873183edq.255.1594753888368; Tue, 14 Jul 2020 12:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594753888; cv=none; d=google.com; s=arc-20160816; b=t/8qFaAXUE4TfeL3WauHsYOK3LWqzRKJLpCHuAvsGHN6N3SN9PCMiYBE7urLb/A+Vn 8KrCLvLYkrdN/MlISXGVb1IsMmPLZnJxC37g60Y3aKT7cOs28pE925V/i24E3NDP5Ae9 am34GMUPzhFt1XOv4cIhmsSr7W19nT5Gm1GYgyhqP/wAmPcJjVMPhStvawlLi8Q5i1Sx yVnpIqXq0rMQAEu118tlQDzb4Gi/Gk9v7i1UVt13v3RdJTuWtEM/eG44BBcMSC20HOhy tMrUNBnB9lZ+d0vsefEamDoKUg+iEBrQw4YOMcZOlEyXeCv6CcpGLv7jneydwVEGBI+r g0DQ== 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=ldk35b647Blt4bomZ36KmbfkoU4onYAwVp0xJ3QcwvM=; b=Pr5T/64ZYKSuRWUEvLUJ0n+5HxGChDZ2lYDzkZ4iQajfB4XhjHNM3EieyLshjumXRR UDDD4W+MQwC28EECWe3436+3zwqdQOiSnAlvnHB0aB4Ujq7IuAGFPcSYKA5CjheU4z5c dnVAMy55wXm2Fa5fhRsFXRFXZ8chLWCdGhRBiJS7V5E2pxv4tKCGc3ZZGCcWkasmbvWK mxAONNXCULzJQRqxcXad49h8sQKLaXm2xEefdV9oaEKe0Y/kHX5NGpk22xXhqBsCky80 iZVbN6JvzmmxIgi9xam9wk5vaj2uZCLi7bVcCTSx20rfpgbkDHGgJn3j6DPlRtMV+auZ 9hjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=lCDAzL5P; 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 e23si8855947ejl.751.2020.07.14.12.11.04; Tue, 14 Jul 2020 12:11:28 -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=lCDAzL5P; 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 S1730360AbgGNTLB (ORCPT + 99 others); Tue, 14 Jul 2020 15:11:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731135AbgGNTI6 (ORCPT ); Tue, 14 Jul 2020 15:08:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88DCC061755; Tue, 14 Jul 2020 12:08: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=ldk35b647Blt4bomZ36KmbfkoU4onYAwVp0xJ3QcwvM=; b=lCDAzL5PEoWj3Zv8OCtq7KXifo q4/YWDxx86bG7QJvCno34VPOO6pcAqRbBZXTdtYRWZzOLFuq1Aqo7AsL0eGleCI1DfuH+aacsT/sE v6JB42zM0NNfOVb5MiZemMGVEdG+H9XTQygGYjD2JElDBYZHn20QR+ofcBpLsZGUE8toK/bLvI3s6 yoZQmeTmjVfQCPpDFlZyTph6+wM14MTR0bWJMhect5yeF6ur/XddYngIvRZWAr3jHhuraCqvgTifJ 4l2v6IMRLZ3HYXlLb/axs8/CzDfcL9QjIU1jtMmn403H2pmTRQ5pMeE1PHtmEwtgs968XDX2MOdVd +SnRNXEQ==; Received: from [2001:4bb8:188:5f50:f037:8cfe:627e:7028] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvQIS-0005qG-CA; Tue, 14 Jul 2020 19:08:56 +0000 From: Christoph Hellwig To: linux-kernel@vger.kernel.org Cc: "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 06/23] md: remove the autoscan partition re-read Date: Tue, 14 Jul 2020 21:04:10 +0200 Message-Id: <20200714190427.4332-7-hch@lst.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714190427.4332-1-hch@lst.de> References: <20200714190427.4332-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 devfs is long gone, and autoscan works just fine without this these days. Signed-off-by: Christoph Hellwig Acked-by: Song Liu --- drivers/md/md-autodetect.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/md/md-autodetect.c b/drivers/md/md-autodetect.c index 0eb746211ed53c..6bc9b734eee6ff 100644 --- a/drivers/md/md-autodetect.c +++ b/drivers/md/md-autodetect.c @@ -240,16 +240,6 @@ static void __init md_setup_drive(void) err = ksys_ioctl(fd, RUN_ARRAY, 0); if (err) printk(KERN_WARNING "md: starting md%d failed\n", minor); - else { - /* reread the partition table. - * I (neilb) and not sure why this is needed, but I cannot - * boot a kernel with devfs compiled in from partitioned md - * array without it - */ - ksys_close(fd); - fd = ksys_open(name, 0, 0); - ksys_ioctl(fd, BLKRRPART, 0); - } ksys_close(fd); } } -- 2.27.0