Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp817840ybh; Wed, 15 Jul 2020 16:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymgxQiMK6+vt/sMeXT96yGpuE1cB6a9091R6T5sCFx9li34gjxwMpbvVZKYe3fkUVKeCs2 X-Received: by 2002:a50:8186:: with SMTP id 6mr1978009ede.45.1594856129361; Wed, 15 Jul 2020 16:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594856129; cv=none; d=google.com; s=arc-20160816; b=yyEsR486MmAlG7v7OhkWJY5mRjXCG8/iSSHgfgIqxKRpCVtt6bWkTXk5i5OnnmFuT3 7dA8olErS4rN8bfEH83Z11l+f38OqiodO6xOYgBAnFSYx0X39HmjMMzN9vrDIe9no3q2 4EGXTixOlpKC5GzWdOVWX/hJcRtf511wd8JkD9lumWwrKIKOT2xYms7dbjcfl23ax02V Ri6FcOoFJHZpNdl1jtvr7gkq38O6IIwF+RyF6aC29+h4kP64jyi4PEZkWAbvEM6v4YWo gIUoiwDjTsB4M6lZGircffYloGBtIRX7A8cKjoeDZyVEedhuEJx+4gUp7yHxRdXRrnXY fCXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=zasPkhONYfl10CLjp7yZCvaMCQL+99EEcpIqWidX9Ho=; b=nuzqgRRDg//kSH5mIun5GP7RPjETxxZX/jb8AQuQi3gBWpkmtWl1I/c0dZToai6C32 P230dAIWv5HrLoAQWgpYsmY2pvlKRHd89E5gL5cZWuG3sRFNrnWK8Ce2khzbU+QUwjGL X9RTeBSNDvgjDOVOWiTKfFAGkyekDyLdB9LCtkAG23Ojb0pW8PaUP3rkES2FSBVs37eo fEjW1dE/28mBrK8DxGhGEpm/ZN8GXQfB24lz3QVbi3oFEXKXBGdNXvB/l5X2xm9+XMQe jjTVDHMmK2aM4RpdsjeGxxCXFCallvjfy2+Nh7FewK6G6mo7uzCUGMirdNVzCBeAuCFv RDfQ== ARC-Authentication-Results: i=1; mx.google.com; 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 h24si2241933ejk.168.2020.07.15.16.35.06; Wed, 15 Jul 2020 16:35:29 -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; 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 S1727788AbgGOXeN (ORCPT + 99 others); Wed, 15 Jul 2020 19:34:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:49902 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgGOXeM (ORCPT ); Wed, 15 Jul 2020 19:34:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 027CCB02B; Wed, 15 Jul 2020 23:34:15 +0000 (UTC) From: NeilBrown To: Christoph Hellwig , linux-kernel@vger.kernel.org Date: Thu, 16 Jul 2020 09:34:05 +1000 Cc: "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 06/23] md: remove the autoscan partition re-read In-Reply-To: <20200714190427.4332-7-hch@lst.de> References: <20200714190427.4332-1-hch@lst.de> <20200714190427.4332-7-hch@lst.de> Message-ID: <878sfkxsia.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, Jul 14 2020, Christoph Hellwig wrote: > devfs is long gone, and autoscan works just fine without this these days. > > Signed-off-by: Christoph Hellwig > Acked-by: Song Liu Happy to see this go! Reviewed-by: NeilBrown Thanks, NeilBrown > --- > 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 =3D 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 =3D ksys_open(name, 0, 0); > - ksys_ioctl(fd, BLKRRPART, 0); > - } > ksys_close(fd); > } > } > --=20 > 2.27.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl8Pkm0ACgkQOeye3VZi gbmvhRAAqNcDpiKiYUoh6S31+KrS0faoFbgtIelgUebGH3b9IvlXaerDxxz7ZkYE fWQxVUfscuRjirEJ2+SRztm6SLy0as8ufCrLV6EboI4mrqSij2WqNfSrEO9A7w76 xMs0JmWrnGmz073MoI7maLYbh6dcDycSvDzcnHWGjD10kaZoNC39E4jLMtZFe4VR IVx69GH4LEWqWcE+wq9ZqGFKZnsGxdxr5+CIZrTTiZQcWEswBixbZc0Jsz0sh3CD tOpsCkq/nXlNc8Fo8nvyBUZuWHaPlwxMtw3xflwEJCl6CVhCKx9lRsCfnbYSD8VK hBJvdVmLazmVpR12ISimBJTH81xMayZNhCrqv97eXwY4LsRiOAN0F+VOtTew7WKI mHWz6jvyJLrsbuWhyDnqwSphOHcIX6UjOKhEhB9l1WRN5cwt7Cgvva6vnv7f8FBZ Dwo6YCshQw6llozCk3DBlNyw3mzsFSOo9GO2924lloxeN4W77giK68LCDSW3Wh94 vW+elFckRQH3Er27BlT524ptXjV6XyKuOGVQJI6vWA3mOxJf5Vd99gqm6EC3wq3+ a7C5QW+MO6FUeersShdyxfulSmQ5Bye1mByD6xuo4/2nvaufKQKQyIWEaECpTTst +LXbbfaQWZmuSy9Ps4G2ugXHgt03Ke3p3iMpIClLqY9NHa7kl9c= =n2C8 -----END PGP SIGNATURE----- --=-=-=--