Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3141605rwd; Mon, 29 May 2023 06:20:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7myLTstK7GpMaO1TK9UBuNLgLstWpK/T66DpZ7PPi7Fc/iCHY6jaIMUu0sev7Qu5xA4EzS X-Received: by 2002:a17:902:ea01:b0:1ac:797b:8cf6 with SMTP id s1-20020a170902ea0100b001ac797b8cf6mr11795823plg.69.1685366450113; Mon, 29 May 2023 06:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685366450; cv=none; d=google.com; s=arc-20160816; b=luzEQdlVtxfxNIMhrybiIdld2ALjcOgidkiRICH5i2nOE94W/NWfs+6bmlZuUKeUrX lKlhCUVB7YVnm+rkeR7eQ0lqWB3C+rqhpa/Sh7NmoDv98aWphU5V2CKTm6Bj8a7JwSVj KjhthK0iHnP1vXa0uOOGduIXCI09v1wqjNtzFQpd0QzqqkQbDo02hC0ItApzSaQa785F ocTz9/6TpmIcq0jSt4Pm/hL/vfnnur9xOiEMAYoTLguNFEzwDTL2GNAuaKDbvU6cghOJ ju94mDy+ajHXA1fhhlkNKf4mJW/bZV6d6i/NYwALPU43W8uD+M7DlWNyy2oS+2XhdI97 2QKA== 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=nxwUrt55THtmHEfXmtZW6CxY8DD3Tj0E2Q+JcG6qIr8=; b=NimAiN/VqnH7gTuJZrJk74ruyIpk9g+0PWArNN36X9WIjlTCJ3d1ACtL8tEWgnT1MP dgs2JAkYylLZtim6I3wK1BUdm2cbhkRYM2ZtVn1ZY6wO2kq3Tk47DEwxu9OL1SqyEbJy JELmnGJi2enjo53mRMDzrzA+ZCwg3K33xAsbtLvqqhEQZ4+YcpcrJdZDCDkK4AFAlaq/ RmB7xHlUsDEvgINO0Azu8TLFYLFsQXdgF3Jdri8A21JwMm0QxGtgUJ8TxasS8U3V+8vc M4EvJNENoomwN1op8S3hV2MS9jEruSMmH9uwQWl5RkAatGeWW+RwRE/dQy1DRh2hpgG+ l9MQ== 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 t13-20020a1709028c8d00b001aaf91ae3acsi8828572plo.485.2023.05.29.06.20.38; Mon, 29 May 2023 06:20:50 -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 S229738AbjE2NPO (ORCPT + 99 others); Mon, 29 May 2023 09:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjE2NPH (ORCPT ); Mon, 29 May 2023 09:15:07 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67BBFE; Mon, 29 May 2023 06:14:48 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QVGGD0SXsz4f44Cf; Mon, 29 May 2023 21:14:44 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP4 (Coremail) with SMTP id gCh0CgAHcLNDpXRknNjnKQ--.28139S4; Mon, 29 May 2023 21:14:44 +0800 (CST) From: Yu Kuai To: song@kernel.org, neilb@suse.de, akpm@osdl.org Cc: xni@redhat.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH -next v3 0/7] limit the number of plugged bio Date: Mon, 29 May 2023 21:10:59 +0800 Message-Id: <20230529131106.2123367-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgAHcLNDpXRknNjnKQ--.28139S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw4kKF1xKr4kWw1fJrW3GFg_yoWDWFXEvF yqqF9xtr47XF1ayay7Gr1xZryUCrWqqFnrJanrKrWrZry3ur1UAr1j9r48X3WrZFyUZrn8 Ary8Gr1rJrnxujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxkFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j 6rxdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxa n2IY04v7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrV AFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCI c40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267 AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUb XdbUUUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, MAY_BE_FORGED,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 From: Yu Kuai Changes in v3: - prefix function with 'raid1_' instead of 'md_' - use a globle workequeue instead of per bitmap in patch 5 Changes in v2: - remove the patch to rename raid1-10.c Yu Kuai (7): md/raid10: prevent soft lockup while flush writes md/raid1-10: factor out a helper to add bio to plug md/raid1-10: factor out a helper to submit normal write md/raid1-10: submit write io directly if bitmap is not enabled md/md-bitmap: add a new helper to unplug bitmap asynchrously md/raid1-10: don't handle pluged bio by daemon thread md/raid1-10: limit the number of plugged bio drivers/md/md-bitmap.c | 33 ++++++++++++++++++++-- drivers/md/md-bitmap.h | 8 ++++++ drivers/md/md.c | 9 ++++++ drivers/md/md.h | 1 + drivers/md/raid1-10.c | 63 ++++++++++++++++++++++++++++++++++++++++++ drivers/md/raid1.c | 29 ++++--------------- drivers/md/raid10.c | 47 +++++++------------------------ 7 files changed, 126 insertions(+), 64 deletions(-) -- 2.39.2