Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp897811rdh; Fri, 24 Nov 2023 00:05:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnxA0k0ISNncu3nFH9E6YuVgdwTk9o9CkH2/82YHuHj4ooYCStzcDOIh5mhMzCeJ3qDlcd X-Received: by 2002:aca:1309:0:b0:3a3:95f9:c99b with SMTP id e9-20020aca1309000000b003a395f9c99bmr2041821oii.35.1700813104602; Fri, 24 Nov 2023 00:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700813104; cv=none; d=google.com; s=arc-20160816; b=MLFlq3C+8SwOzOi5STwsVGut587O4p7QoS13SZhyG+9oj7Wl/m6Su8bod9LuzK0TzH xVvpVYso73MDB26FR2qffyN8Ixf1TC3dQkzLnMNOm0G3CfKUTkwecVqhE5jCbpbEHe7z zgURtYw8VX8Y5lO8p/FY8p/O4GQaHKPVPD+JlOS7KkXuUrDy6pjip4qjNV++G2kE74ur jtfD4ngDwPfRbPWsE/TvtkpAzTMqqSaQZCF6FhQJFmeZMsrmxnBJzfj5SogToNmj9k44 6iSepcN2cvmZMvdnnYrqr8bhet4cPvRz4mrjtp1rh+ef6XdD6JE4JhDAWqBtW2X5aeJU Xiag== 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=ErcuDwvsV/skwXN80axXcpumAZCfuv3tj1ZGUc6SumY=; fh=1OsC7ljVhdTcf5FTl08sAtO9qsMpveq6AJn+JsIEEss=; b=Ju2iqam9J56Xrjga5szEoYwC5GqiY1EnhjqD/ifOwRQBog0Lu3waJNyA9aVMH8pVEq mOuRCdQ5d7R5wCz4a6e+lDc+hsWrWbp9lfnhMcgVM2QbP+VzcV7L12pUytte3ks95KLx dT/nF7RzGjf/9ehCDvmBaCgb4K60wyjq7WWdpv4KawhfUinKEb0iu8nBTwIqoB0t68QL hyrYdAvKCyF5eCgV/vV+80HyL6715OVrI7/3XVE6ZYWI24VcIXaCaBBJH2RD5NkZ52CY nD1kCTC4SoLfNr1Pp3BleP9OhnL0r5kLJlROckaHQi5k1oHjjAz/M/Nplqi6uytujcLB EaKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bm25-20020a656e99000000b005b96a77e712si3298874pgb.17.2023.11.24.00.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 0010281DA38F; Fri, 24 Nov 2023 00:05:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235222AbjKXIEv (ORCPT + 99 others); Fri, 24 Nov 2023 03:04:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233055AbjKXIEe (ORCPT ); Fri, 24 Nov 2023 03:04:34 -0500 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FEC94233; Fri, 24 Nov 2023 00:00:22 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Sc6pn3tfhz4f3lww; Fri, 24 Nov 2023 16:00:17 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 459981A035D; Fri, 24 Nov 2023 16:00:19 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgDX2xERWGBlUnAqBw--.22901S4; Fri, 24 Nov 2023 16:00:19 +0800 (CST) From: Yu Kuai To: song@kernel.org, yukuai3@huawei.com, xni@redhat.com Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH v2 0/6] md: bugfix and cleanup for sync_thread Date: Fri, 24 Nov 2023 15:59:47 +0800 Message-Id: <20231124075953.1932764-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgDX2xERWGBlUnAqBw--.22901S4 X-Coremail-Antispam: 1UD129KBjvdXoWrurWUGr17Xw4DtFW8urW3Wrg_yoWxZwc_WF Z8ZFy3Gw17X3W7Ja4UZrnIvrW7CFs8u3yUXFy8trWayF4avryrWr4Dur4Ygw10vFWagasY kryUAFWFyrnxWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbzxFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,MAY_BE_FORGED, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 00:05:03 -0800 (PST) From: Yu Kuai Changes in v2: - add patch 2; - split some patches from v1 that will be sent separately; - rework some commit message; - rework patch 5; Yu Kuai (6): md: fix missing flush of sync_work md: remove redundant check of 'mddev->sync_thread' md: remove redundant md_wakeup_thread() md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly() md: fix stopping sync thread dm-raid: delay flushing event_work() after reconfig_mutex is released drivers/md/dm-raid.c | 3 + drivers/md/md.c | 149 ++++++++++++++++++++----------------------- drivers/md/raid5.c | 6 +- 3 files changed, 75 insertions(+), 83 deletions(-) -- 2.39.2