Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp635938rwr; Thu, 20 Apr 2023 04:34:36 -0700 (PDT) X-Google-Smtp-Source: AKy350YyPNsK75AHbh/NybfQ4vJFjy4yxWpwe4k95lz44kSsFC+4kjdNcVh1sZz57WYgumKb/fbd X-Received: by 2002:a17:902:db05:b0:1a1:8fd4:251 with SMTP id m5-20020a170902db0500b001a18fd40251mr1543828plx.55.1681990476211; Thu, 20 Apr 2023 04:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681990476; cv=none; d=google.com; s=arc-20160816; b=WdBclp89f/48XEMNCh3ukq/rTkhVe9QhEiaQPe6oy46QMh1yeo22iTHHC2rDqiKz8j lxBprGAG5eJYa/5ORCCDwc1vOKlcmzmhYT9kCDw6qlozoh8FAjIYI4mOCiDhfo9zrx63 TzTgDanFQqazTi98oBxju4vEfbIZvF3m3bPaeQwpfEVldctuPTqOfOZmjUz8KjgMbpva wa8DkI5CjTCki3Eg3ID0K7Rj9q3/A8BAC9djlwvYeQ7L/khLRMTAIa7VjRiCdAe3LJT5 QD2Vq9jSCFXhyz6Ec2TkuBOYcC0GIuyv90qFYLPlTAXMhqenx0zGk37IUGL9l04ma52e inwg== 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=43dE7eX/9JKzkL9jftVyFLF+Z8bwpyDT19ajv7sQ2QA=; b=vVp9qp9MeszlGKvQkyhhFsmnxR89cLFkUm22TdtQ3JbRttCmDiy+VsEiYvF86U3P3I +LlFofPS21IL8iRC2YEBMQ+tv7Y9/joq7Tffz2ssC/E7sKbFsJI6jPXwe2TKipzZ+dJ8 hVqDSriHPiLvWIvluU5O5lbsC46Ryv7rZFU56buZ0D+iSmo6u1v1F5bDsezxgGp35YjB zlQ6hBcCNDu/6m38GN2MXhJyr/0dIchDyF730PaZHJani19Wcjv4u4GXGDt8DW+adlSL 5sdX8sPylkFqPrZGrOk+vjtupwpNB7TGOLy/lDol2EjFyImZ/NIFiZHcWzd3ExylORVC dzDw== 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 y8-20020a17090264c800b001a66aaf8395si1586768pli.227.2023.04.20.04.34.22; Thu, 20 Apr 2023 04:34:36 -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 S234591AbjDTLbz (ORCPT + 99 others); Thu, 20 Apr 2023 07:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233789AbjDTLbn (ORCPT ); Thu, 20 Apr 2023 07:31:43 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5FBA26AD; Thu, 20 Apr 2023 04:31:20 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Q2Fpm5XYBz4f3l90; Thu, 20 Apr 2023 19:31:12 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP4 (Coremail) with SMTP id gCh0CgCnD7OAIkFkVY8hHw--.17021S4; Thu, 20 Apr 2023 19:31:14 +0800 (CST) From: Yu Kuai To: song@kernel.org, neilb@suse.de, akpm@osdl.org Cc: 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 0/8] md/raid1-10: limit the number of plugged bio Date: Thu, 20 Apr 2023 19:29:38 +0800 Message-Id: <20230420112946.2869956-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgCnD7OAIkFkVY8hHw--.17021S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Gr43Cr18WFW3Kr1UAr4Utwb_yoWkGrbEva 4vqF98trWUXFy2yay7Wr17ArWUJr4qg3WDJa4DKrWrZFy3ur1jkr4v9r48Wa1fXFyUZw15 Xry0gF1rAryDZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbz8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, MAY_BE_FORGED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This patchset tries to limit the number of plugged bio for raid1 and raid10, which is done in the last patch, other patches are some refactor and optimizations. Yu Kuai (8): md/raid10: prevent soft lockup while flush writes md/raid1-10: rename raid1-10.c to raid1-10.h 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: support to unplug bitmap asynchrously md/raid1{,0}: Revert "md/raid1{,0}: fix deadlock in bitmap_unplug." md/raid1-10: limit the number of plugged bio drivers/md/md-bitmap.c | 61 ++++++++++++++++++++++++--- drivers/md/md-bitmap.h | 10 +++++ drivers/md/{raid1-10.c => raid1-10.h} | 61 +++++++++++++++++++++++++-- drivers/md/raid1.c | 32 +++----------- drivers/md/raid1.h | 2 + drivers/md/raid10.c | 45 ++++---------------- drivers/md/raid10.h | 2 + 7 files changed, 143 insertions(+), 70 deletions(-) rename drivers/md/{raid1-10.c => raid1-10.h} (64%) -- 2.39.2