From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E1C0C433EF for ; Tue, 22 Feb 2022 08:54:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbiBVIyX (ORCPT ); Tue, 22 Feb 2022 03:54:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiBVIyX (ORCPT ); Tue, 22 Feb 2022 03:54:23 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2E02113AE5 for ; Tue, 22 Feb 2022 00:53:57 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 601CD68AA6; Tue, 22 Feb 2022 09:53:54 +0100 (CET) Date: Tue, 22 Feb 2022 09:53:54 +0100 From: Christoph Hellwig To: Luis Chamberlain Cc: Jens Axboe , Christoph Hellwig , Chaitanya Kulkarni , linux-block@vger.kernel.org, Pankaj Raghav , Adam Manzanares , Nitesh Shetty Subject: Re: block loopback driver possible regression since next-20220211 Message-ID: <20220222085354.GA6423@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sat, Feb 19, 2022 at 11:05:23AM -0800, Luis Chamberlain wrote: > Indeed. The issue is that dropping that also does not allow the > association of extra custom higher number loop block nodes created manually > even if you *do* load a respective module before use. That is by design > by the commit, since we're stuffing the nasty old probe logic now under the new > CONFIG_BLOCK_LEGACY_AUTOLOAD. Subtle difference, but same deprecation > effect. > > I agree with the approach to stuff all this nasty cruft under > BLOCK_LEGACY_AUTOLOAD however I suspect v5.19 might be too soon to tell if we > can nuke it safely by then though. Yeah. 5.19 was planned when I submitted this for 5.17, but with it appearing in 5.18 it is far too early anyway. > I'd go so far as to say that we should sadly make > BLOCK_LEGACY_AUTOLOAD=y for a while before going with an axe to kill it. > I think we have a few hidden gems we'll soon discover might need a bit > more time to adjust. Probably. > > FWIW below is a simple test, which now fails to explain what I mean with > the above. > > root@kdevops ~ # cat loop-high-devs.sh The interesting part is that the script works if I remove this mknod: > if [[ ! -e $LOOPDEV ]]; then > mknod $LOOPDEV b 7 $NUM > fi so it seems like losetup is trying to be smart here and skip the manual creation if the device exists. I'll take a look at the code and wіll prepare a patch for that.