Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp521151rwd; Wed, 31 May 2023 01:25:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ebXqmZ+YX2Nn94hSvfr5mmVnOuC4YlWuesLIgHkrNZPnqnoo6vBJuCf8z6/X4MpEDiJNs X-Received: by 2002:a17:90a:69c4:b0:256:a465:751b with SMTP id s62-20020a17090a69c400b00256a465751bmr5364727pjj.9.1685521548642; Wed, 31 May 2023 01:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685521548; cv=none; d=google.com; s=arc-20160816; b=ZcBJBxMM93LasXOlKLRt8A3/0eWGpYQhJRsS1l/oguf9q2Gm4LK0NhRPMkudy6Mwqd QGjDGg5InNzx8Zz/8Iter7or+QnISqaWiuVq+jO8xIWmy+SF8hMhXerMdXG3RLXczjki 2MRlhqReRmlw5t5EE4aH/7wcyS0tsdm57BNVuONNiKqxex43MsMOFL/B6Rs/iU9NTyVX PvQ2jg00yb5mqbS6KajPWw7C6a8zh5ZLRhN08j9WXab80dzIHAHpTKm3H8zO4MaE1bJ8 jrsgtcA8Ts4qFqB8I/rOarwq+oP2eJZ64EephJxeRy8QWYvmQaUE4DuKAcbsr2Tb1JWW anKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=7xzUhq6BhITTTIq0a2u9qC1BYHSzcCvEfN9S+KU9ZCA=; b=smEIA298qN8JSNnnRSrNPSNcEmWSXdUW/OOqO9Cqi2xHbsBitTY3Xy/5v1LVp6dhqh i5oLG86IamDDM+HnP7MNnVXnri/IUSXykGHPQIKrj/HS0qOFzDOy/7wBQGQI8xVBtijg jAAsJrN018wHxZOaq9FCyVPTEx4FDGaTSAWK6L7Rsbyr9vMJhdWiIhfu7lLWj6xVGaAe 8U9y1IughFAvboCy9NLXvsR0NFo6iiBD3oswcipX3gNwzDx30f4LLnh9ADKJM9MBf1AK U78XUPuRijvWbFi8mMWm17cFdK5LanQWUX2vL9M2HjWE064HPNwWgML/r3xTNBlLGGkP HOTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a17090aca8d00b002562fce8178si612779pjt.25.2023.05.31.01.25.34; Wed, 31 May 2023 01:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235067AbjEaH5u (ORCPT + 99 others); Wed, 31 May 2023 03:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234823AbjEaH5X (ORCPT ); Wed, 31 May 2023 03:57:23 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52526132; Wed, 31 May 2023 00:56:32 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QWM633hytz4f3k6M; Wed, 31 May 2023 15:56:27 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgBH_rGr_XZkwQltKg--.16445S3; Wed, 31 May 2023 15:56:28 +0800 (CST) Subject: Re: [PATCH -next v3 3/7] md/raid1-10: factor out a helper to submit normal write To: Xiao Ni , Yu Kuai Cc: song@kernel.org, neilb@suse.de, akpm@osdl.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20230529131106.2123367-1-yukuai1@huaweicloud.com> <20230529131106.2123367-4-yukuai1@huaweicloud.com> From: Yu Kuai Message-ID: Date: Wed, 31 May 2023 15:56:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgBH_rGr_XZkwQltKg--.16445S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYg7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87 Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJVW8JwAm72 CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4II rI8v6xkF7I0E8cxan2IY04v7Mxk0xIA0c2IEe2xFo4CEbIxvr21l42xK82IYc2Ij64vIr4 1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK 67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI 8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAv wI8IcIk0rVW3JVWrJr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267 AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbE_M3UUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, MAY_BE_FORGED,NICE_REPLY_A,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 在 2023/05/31 15:20, Xiao Ni 写道: >> @@ -110,6 +110,23 @@ static void md_bio_reset_resync_pages(struct bio *bio, struct resync_pages *rp, >> } while (idx++ < RESYNC_PAGES && size > 0); >> } >> >> + >> +static inline void raid1_submit_write(struct bio *bio) > > Hi Kuai > > Is it better to change the name to rdev_submit_write? It's just a > suggestion. The patch looks good to me. Yes, this sounds like a better name. Thanks, Kuai > > Regards > Xiao