Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp920854rdf; Tue, 21 Nov 2023 23:54:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcvEcRYqJtbv4MeE/u+79dWi1MJbOsPEddZYr9YhbxcjFOonnylttPep0Cx+LcRrQwYZfq X-Received: by 2002:a17:902:ea03:b0:1cc:51b8:80f7 with SMTP id s3-20020a170902ea0300b001cc51b880f7mr1604545plg.26.1700639667273; Tue, 21 Nov 2023 23:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700639667; cv=none; d=google.com; s=arc-20160816; b=r4hmBL0g/Bz1U5N1qc8QfMkU+P3Pc2FcfeU36Uf1Qapykfc+zOn0pw9jEvrt6hDYIT iS5mh60vRacGGnlODSPVtW27LG4Vn7Xin+YwTb7hDp9t/3zsZdqLr2y2ZWjJ1XoAv3q6 JkogwIGXC5LMQMORpwq0qI6CSD2tKttmjPpnm7XuoQQIvE0prNM/xTMeUVYZOOkJ1oZm AxUGxfR9IioaWdKJ3gayhH5iB5TysjtZ9vyTyOLb0Rs99VpgrvXot/039paao37My0Dc lOCD+8ZdHR/987EjVYVFbuLzAIICSpiy5/M3TdfyuWaRjWeW71BZ6dsyrlaD2RqjpV+5 V35g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=J+bePWMprDbaGsnpRV9f2P2ovME7LDOe2qhgN0MMut8=; fh=pdrz9pMzRxXRsEfkPMQMOkzwqdTTXkIQqo5S3UnXMrg=; b=0uSJag9KsEyhl4C8AEQOh03p0n66YdlZRJ0cYz2kMQ86zXOWMl6ww8v+ecCQCyh+Qk h6oij0lhEW+RiYd3mTDgVprUx0kjIQpuCOIO7oqyk0lJj7N1IUFNCGHe2E2gJkX1Hawt FzID8A8kcNKs+T0fmQU81edn3eq4eSzjHHHtaK9HutlYaMFQnVG5ZXMCzkbcXpQqP7VT Qkk/LSo+3wyDGwDSWX8Hp6cRvMSCtY3ihVr213IMLRpXgi8jdRF3IR0aCrhFRgfk1TQq IXJLs2qA8KjOLyPMcX4Amlq1Hdv5OKfpSX+D3XSOX4XPrzpiXC/CXTSdIPX0sGr0+3eT ZrNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="sO/L2q4O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h13-20020a170902eecd00b001ca485b8514si11740710plb.646.2023.11.21.23.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 23:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="sO/L2q4O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 1813B809ADD9; Tue, 21 Nov 2023 23:54:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbjKVHxj (ORCPT + 99 others); Wed, 22 Nov 2023 02:53:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235089AbjKVHx2 (ORCPT ); Wed, 22 Nov 2023 02:53:28 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27929D; Tue, 21 Nov 2023 23:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=J+bePWMprDbaGsnpRV9f2P2ovME7LDOe2qhgN0MMut8=; b=sO/L2q4OqAtZKvjVdg9fs0cQ+4 9UGXKrFzl23cuOIY/lrbPdm8CXVzgeG5spD5qeMYMOwMfgsIIDzLSjy6x5T2rfI59pv3duwvH9YX1 4pVFrQDr94qRX8uVU0RoE/GnpB6oC/4pi+d3I+WkexzTywPUPMzSfQ+n2hCmD3ZTwLX6QCYR5q1SF +gYo03A0NYe5hgUgq3ecCMVJggOSzg98WzZb53qCIDM9/+PcRi45e24yn/i0qv3bu74H/nZygXx+8 3Lxa8eQx2ZpVwvcV77rienMmpWSHIxB9JGagtw6Z93JmrmFXvkMqkM//vvNWM87dQhX/ckUKt54Ur Z2QhLx8g==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r5i2v-000y8k-38; Wed, 22 Nov 2023 07:53:17 +0000 Date: Tue, 21 Nov 2023 23:53:17 -0800 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Yu Kuai , axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: Re: [PATCH v3 2/3] block: introduce new field bd_flags in block_device Message-ID: References: <20231122103103.1104589-1-yukuai1@huaweicloud.com> <20231122103103.1104589-3-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 23:54:25 -0800 (PST) On Wed, Nov 22, 2023 at 03:45:24PM +0800, Ming Lei wrote: > All the existed 'bool' flags are not atomic RW, so I think it isn't > necessary to define 'bd_flags' as 'unsigned long' for replacing them. So because the old code wasn't correct we'll never bother? The new flag and the new placement certainly make this more critical as well.