Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp409544pxa; Tue, 11 Aug 2020 06:15:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ4UwyolPh4XKkfxpP0BfCunJNxZQdd3NBUq4xQszeraMwWXKBL8ab9Y4Kd7nZlHfcZ/fG X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr26137031ejk.459.1597151713807; Tue, 11 Aug 2020 06:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597151713; cv=none; d=google.com; s=arc-20160816; b=jXJ4mzkBXARXe0I2cNgF4kH3TmKPi/lPQwLxB2Ry8hCL89K27r1yDSasKMAbkwfuMu CwCtIwPOJtQsoOiQpdQ4fGivVXugyDWqotdLy8sury2VnKQBxjVk9QN/tTl1LF5RM0t1 Tiokbv/NSADPniMZ1ulMUZwyGGGKz7bWZ2wle8F+WBbERqlrlSM3R5P/MtKEKvBi9cGm s0ixndJnnr4uXhLtxsb2pUcpU2tJl5fGibN/DojCfmvmENPy8hiNaUfKlT4LvA4WWCrF PvPkXauYPoMbRmk+rqdFpYNNH+umN/RQzAMsEiEcDz/abLzQnVSWwLjYJzTstfzJA0GZ IwRA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=xHu6dqtx6dKHdWpQM9ecfqF6ipS8+Ftc0J6RvgUhGFo=; b=dI6/xuDqfPCZI64QVwBx1g/zzYgq8AmMsG9nvQsWfbthGIAlwjTBkEx8NsHHUejBKv QJq+YRyT0mTBWVixEiWYy3WIRtpdDK55+7I3VypBGc+Mm0U3rTdmr16wDCNEJNOFH3vj tssMz1BSd2C4JaOycJjxWUuEvK8ET9Ytof5CWenI4+KzebDTv7hEJz7+6LfIw6/ptebo +KX1e47wke9skTLlMp9GX5KjMuE+6TsuhISxQIv786UhrHkCsoL4wi1DFk33ODkii6mS FPbRVZ1vo0bpoF8mwltmy4aWDBelN5mpHmKCCEVID/mB3zaugeEDnEWg5rEAw1M9E0Yj kxsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=jdu0KZuJ; 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 r18si12457791edo.272.2020.08.11.06.14.50; Tue, 11 Aug 2020 06:15:13 -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=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=jdu0KZuJ; 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 S1728684AbgHKNNg (ORCPT + 99 others); Tue, 11 Aug 2020 09:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbgHKNNg (ORCPT ); Tue, 11 Aug 2020 09:13:36 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9FCC06174A for ; Tue, 11 Aug 2020 06:13:36 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id i92so1508433pje.0 for ; Tue, 11 Aug 2020 06:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xHu6dqtx6dKHdWpQM9ecfqF6ipS8+Ftc0J6RvgUhGFo=; b=jdu0KZuJGN7BSi/GvbU8wDgSr5m6NHgobmXY0Qa1UBkL9hhJdh1tM2Mx4P2/3dVILb JoF/CaxgNxTO5fYriU7q2WXbHY81dQTzL3qkVbxu9CSNR9bTc3h3CZBdIoJCholq/cPJ JbLEmEqnnFP8eK740tBfhUFK/G1xlAAvI9pXJNVS5UJaOQ6I7cqkvOmXmlEIVBvJWVuV ASLxte1F5dhJdr+bjcvf3xh1jNQh2tRI7rhlFZg/jeqZ9DdjDtQaZm7I9uQ63uy+tpyL oOiiywQjZbLvS4l79qQLLu7Ty6KBAZHSaxxhh+1CmwEfdTtaQeHpNV6MQ7toYOR2kOli Y8Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xHu6dqtx6dKHdWpQM9ecfqF6ipS8+Ftc0J6RvgUhGFo=; b=RbMClCgVxWiA9vfzEiAwzmWHDb/HnEKRup/Xhl/FVDpgDwPkyy4eJ+PSoL8CsNZxAk iraeefi0Yb7YYjwSCEiKCtq1pL9A+8reTWkgZzTN9NlARBDTleo1GlpmbMOfVcUwCBwx Ovm97L251t8QrwzMGB97IVLo+1A9SUBt0cxVly6EgABbPMtlTOR5jKM9AaRgmBdH9lGy tpgawMgtXMP24Cze9E4GuO5bSOHrHrKEasujrmLOUGkH8HBXjhZsgc2LQyRZvK70Y625 iY1foV6GeXTp3rtQ7q29IRDQAWLNam73yXnAsCI+XJvkdxbfvdseOE5lGKGA/j4IqCkr Fbxw== X-Gm-Message-State: AOAM532IfPADgqNzV6KDzz7HhgbDqOSZSmRJPXDEz7xZtkVzWelTu4K7 52gesEilvB10DpU7gnZYQF4rgg== X-Received: by 2002:a17:90a:bf04:: with SMTP id c4mr944279pjs.149.1597151616039; Tue, 11 Aug 2020 06:13:36 -0700 (PDT) Received: from [192.168.1.182] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id s125sm17541177pfb.125.2020.08.11.06.13.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 06:13:35 -0700 (PDT) Subject: Re: [PATCH v2] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE To: Martijn Coenen , Lennart Poettering Cc: linux-block , LKML , Christoph Hellwig , Yang Xu , Greg Kroah-Hartman References: <20200810171632.GA226564@gardel-login> From: Jens Axboe Message-ID: <9679c065-85c5-ad06-ddf0-a4c81158ebe5@kernel.dk> Date: Tue, 11 Aug 2020 07:13:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/20 12:49 AM, Martijn Coenen wrote: > On Mon, Aug 10, 2020 at 7:16 PM Lennart Poettering wrote: >> >> When LOOP_CONFIGURE is used with LO_FLAGS_PARTSCAN we need to propagate >> this into the GENHD_FL_NO_PART_SCAN. LOOP_SETSTATUS does this, >> LOOP_CONFIGURE doesn't so far. Effect is that setting up a loopback >> device with partition scanning doesn't actually work when LOOP_CONFIGURE >> is issued, though it works fine with LOOP_SETSTATUS. >> >> Let's correct that and propagate the flag in LOOP_CONFIGURE too. >> >> Fixes: 3448914e8cc5("loop: Add LOOP_CONFIGURE ioctl") >> >> Signed-off-by: Lennart Poettering >> Acked-by: Martijn Coenen > > Thanks, still looks good to me. Applied. -- Jens Axboe