From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 180907C for ; Sun, 19 Mar 2023 22:09:50 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2BD2B1FFD4; Sun, 19 Mar 2023 22:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1679263789; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UcKLt9U/8xQce8s4ATm4ybC+SdRvSBXCW4Wo7iUVV4Y=; b=xOhX2Fn3Rz0w79oprPw6eDEjcxfpAAdKSGioQy3Eua+t4gyUGYOPjd+kNDvvxW2K7uFQoL o/lipuAkByPwD2f0KnfQQi+CK65h25DLTXQZ+zgh5/zQ5J/HJ0Izg2NaJ9f/bF+TJ9UA1A vobz0qK6NTIm9Eeh4CZzGz6gGqFFmjk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1679263789; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UcKLt9U/8xQce8s4ATm4ybC+SdRvSBXCW4Wo7iUVV4Y=; b=8E6F9s1CZxZzY3OwRJdytAQJH8uxScPdOzRAFxP1klgfgnCCdKdIIhPNP82cX3zVzGrURD LP0Mw2FkwYugcRAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A9CB1133E6; Sun, 19 Mar 2023 22:09:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BUPYFyqIF2SVZgAAMHmgww (envelope-from ); Sun, 19 Mar 2023 22:09:46 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "NeilBrown" To: "Jes Sorensen" Cc: "Mariusz Tkaczyk" , "Song Liu" , "Linux regressions mailing list" , "linux-raid" , "LKML" , "Nikolay Kichukov" Subject: Re: [PATCH - mdadm] mdopen: always try create_named_array() In-reply-to: <318ff554-0694-64e1-72bd-d941a775a16f@trained-monkey.org> References: <167875238571.8008.9808655454439667586@noble.neil.brown.name>, <318ff554-0694-64e1-72bd-d941a775a16f@trained-monkey.org> Date: Mon, 20 Mar 2023 09:09:43 +1100 Message-id: <167926378352.8008.3450187952660050637@noble.neil.brown.name> On Mon, 20 Mar 2023, Jes Sorensen wrote: > On 3/13/23 20:06, NeilBrown wrote: > > > > mdopen() will use create_named_array() to ask the kernel to create the > > given md array, but only if it is given a number or name. > > If it is NOT given a name and is required to choose one itself using > > find_free_devnm() it does NOT use create_named_array(). > > > > On kernels with CONFIG_BLOCK_LEGACY_AUTOLOAD not set, this can result in > > failure to assemble an array. This can particularly seen when the > > "name" of the array begins with a host name different to the name of the > > host running the command. > > > > So add the missing call to create_named_array(). > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=217074 > > Signed-off-by: NeilBrown > > Applied! Thanks. Do you have plans for releasing 4.3? I'd like this patch to be in a numbered release for at least a few months before we change the kernel Kconfig to allow md to be built without CONFIG_BLOCK_LEGACY_AUTOLOAD. Thanks, NeilBrown