Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1940268rdb; Sun, 19 Nov 2023 17:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgPiB9eQ5PYP+6Qevi/hLh/nuwz+fmZ2aN7n/MXR8xUM7YfobxvGpvGN1+cZ+hvDbxzCJY X-Received: by 2002:a05:6a00:3a12:b0:692:af9c:d96a with SMTP id fj18-20020a056a003a1200b00692af9cd96amr4421459pfb.5.1700444743877; Sun, 19 Nov 2023 17:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700444743; cv=none; d=google.com; s=arc-20160816; b=csCspmsy4r7I8PnaE+B5SkFX1KIF9UO4YcOTyJ7T5aipBrh0lpTO2bpEqZlFAgXs7g qwl4yeU4bO0rTmK1SFW6C1m7+KTVYUJtcdYsEcKZOfVFcPxDJIfNpMRNFl2vKCOcIKBU m8bs6H1h95WE7AdBeXwp2xH432GS6dbMvrykG0mh1dlEFpGs/1YwYAuUKWfQIpWyCKUE LT6Xy4I1pwYkn7MfXpxX6l/k9jchh2SvuoBJwZPACQ8P4rmSFg75NQj6DLgrWT5P61mN xZHbdpYu0jIAsujYVTKmuH8xfbJap70JM2iD6tOGlV/WkEYE2t66qjMapGjg1tEJyv0k EoJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dx06yHX5+WkCl4tXt9Qp2gD6S5HCymzgwJYGyocHds0=; fh=Oq8AZtSdB9WVO0QeE9Ym+sXB+FvqBHwYg1xHLfVNApg=; b=taOyPSgwEY48DOoiFb/5dmiKeqSnQneKh8MoC8Sl52jr3ODrZpt9WqbnjnX+iR1H2c xtUlAaLDnQ6pXwuzF/BOQI8K58IKT6ua2db96n1DcSno8eGqfM/4hCOJL/boEyV43e3Z LvpK58X/KccT+j5FWO5MyI2Zx6jTYc9dOANbvaamljS01iebBSa52BIpXgzYXc8CHny3 UkU5cHkJWxASgRo4XUIVDFgQ63WNCB9PpzP/tCPO44TZ4g8KmjW2uzrEh3Y3D1e9e9au 9q4SYp/SW465TGWizrBOOKGJRbH7EuATAknCVyeMQfkmkyl4aO2MwVQ12rm1K/3IAMyR e4jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a11-20020a056a000c8b00b006cb6b36307esi3137838pfv.6.2023.11.19.17.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 17:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4E8198098FE2; Sun, 19 Nov 2023 17:45:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231750AbjKTBoy (ORCPT + 99 others); Sun, 19 Nov 2023 20:44:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbjKTBox (ORCPT ); Sun, 19 Nov 2023 20:44:53 -0500 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDABAF; Sun, 19 Nov 2023 17:44:48 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4SYVgF3jFyz4f3l1J; Mon, 20 Nov 2023 09:44:41 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id ADB0A1A0169; Mon, 20 Nov 2023 09:44:45 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgA3iA4LulplbmCcBQ--.47132S4; Mon, 20 Nov 2023 09:44:45 +0800 (CST) From: Yu Kuai To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH 0/2] block: warn once for each partition in bio_check_ro() Date: Mon, 20 Nov 2023 17:38:45 +0800 Message-Id: <20231120093847.2228127-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgA3iA4LulplbmCcBQ--.47132S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYc7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JF v_Gryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AK xVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWxJr0_GcWl84ACjcxK6I8E87Iv67 AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28I cVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx 0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwAC jI8F5VA0II8E6IAqYI8I648v4I1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr 0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY 17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcV C0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI 42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWI evJa73UjIFyTuYvjTRNgAwUUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-Spam-Status: No, score=-0.8 required=5.0 tests=DATE_IN_FUTURE_06_12, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 19 Nov 2023 17:45:07 -0800 (PST) From: Yu Kuai Yu Kuai (2): block: introduce new field flags in block_device block: warn once for each partition in bio_check_ro() block/bdev.c | 15 ++++++++------- block/blk-core.c | 21 +++++++++++++++------ block/genhd.c | 8 +++++--- block/ioctl.c | 2 +- include/linux/blk_types.h | 13 +++++++------ include/linux/blkdev.h | 5 +++-- 6 files changed, 39 insertions(+), 25 deletions(-) -- 2.39.2