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 X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E523C00A89 for ; Tue, 3 Nov 2020 00:19:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD4D122268 for ; Tue, 3 Nov 2020 00:19:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727288AbgKCATt (ORCPT ); Mon, 2 Nov 2020 19:19:49 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:38785 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgKCATq (ORCPT ); Mon, 2 Nov 2020 19:19:46 -0500 Received: from 1.is.james.uk.vpn ([10.172.254.24] helo=malefic) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kZk2y-0003dl-1M; Tue, 03 Nov 2020 00:19:36 +0000 Received: from james by malefic with local (Exim 4.94 #2 (Debian)) id 1kZk2w-000Zd6-Vj; Tue, 03 Nov 2020 00:19:34 +0000 From: James Troup To: Christoph Hellwig Cc: Jens Axboe , Ilya Dryomov , Song Liu , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Stefan Haberland , Jan Hoeppner , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mtd@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 06/11] md: implement ->set_read_only to hook into BLKROSET processing References: <20201031085810.450489-1-hch@lst.de> <20201031085810.450489-7-hch@lst.de> Mail-Copies-To: never Date: Tue, 03 Nov 2020 00:19:34 +0000 In-Reply-To: <20201031085810.450489-7-hch@lst.de> (Christoph Hellwig's message of "Sat, 31 Oct 2020 09:58:05 +0100") Message-ID: <87y2jjpa09.fsf@canonical.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Christoph Hellwig writes: > @@ -7809,6 +7778,36 @@ static int md_compat_ioctl(struct block_device *bdev, fmode_t mode, [...] > + * Transitioning to readauto need only happen for arrays that call > + * md_write_start and which are not ready for writes yet. I realise you're just moving the comment around but perhaps you could s/readauto/readonly/ while you're doing so? -- James