Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1772305rdh; Sat, 25 Nov 2023 02:31:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0BETQRsCCFlTin7Q1nrZzmWuDqB3RmdDdwmLKzARNdKK2YKGS9+hQO8YQVpYGXN6ZgMmn X-Received: by 2002:a17:903:1107:b0:1cc:5a74:b1df with SMTP id n7-20020a170903110700b001cc5a74b1dfmr7628968plh.2.1700908267387; Sat, 25 Nov 2023 02:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700908267; cv=none; d=google.com; s=arc-20160816; b=x7zjgY/TpNCSMkWC4Ui0/VfST0PT+Uv1+LnppY+evpF48z5MDbfZgTXldu7L9FYfJz xvOzfA+pbfUcCMc+/XrPIrHd7EkFaegQcfYl3t4+N4S78ZRTtRny/B4FZEGQYantCitA ODB6uRHBsQRJCrBFuiazd4FzYqJzwY65iTnk+hK6fVOv7AIMGAVFYaYUcnkxs01ZjEvb 82KYfqPufFE3GTNAL/j3Kf4paBHQ4rPdunthdrhE3VKcP9mtUUaoVKXrvA7LmYatDZ2e U1uAaOyE/9m8feCdqSRIZ28z81reLQttcXWV3h37gT3W/P3hi7i3hGUNY1QCS2e7QgvQ YsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wLQCR+hwcyQJXO1rzDrTi8/6fcFm4TdvVYYy57cW/E0=; fh=3Se0GYmOHLUJE0Yb1E9aeGEzU1aXw048YWaIFUraUd4=; b=ERKrYHxkQpej8GY4tTltzrzko20BBoajmLybmek5gZSKB+mD2CwI0tkHLWn+QDo1EU UMBRV0lki6Tw5UiIHV4535tqInftqs541ky4WdQHV/b7QbTus8h43UUbaVE+FMqyB+GJ +wc+RxtDzy+FsilXETkKxwNnf5WfbWcOI0t50TG0guZvS5wUqXjZbXMSpFZliyrtdZTW Xsrwupr2qT1Gc2QxIbB5srU1LbAO2ZMVFRzZVgw1fMUp+CusM4wKWkIPzIJC+CqQm8YL 7e/tSMDa2xAeDOac9XI345lH0BPwjFaGTBK9W4NMoUS6L2dsIJKoSU/coft7fLDAa+gP +wTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GsL/e3to"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t9-20020a170902e84900b001cfb316a183si1511417plg.141.2023.11.25.02.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 02:31:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GsL/e3to"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4C7618025173; Sat, 25 Nov 2023 02:31:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231796AbjKYK0f (ORCPT + 99 others); Sat, 25 Nov 2023 05:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYK0d (ORCPT ); Sat, 25 Nov 2023 05:26:33 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6849D62 for ; Sat, 25 Nov 2023 02:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700907998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wLQCR+hwcyQJXO1rzDrTi8/6fcFm4TdvVYYy57cW/E0=; b=GsL/e3top406g4tUx1gVeX944tFnG5DgC1P3qxcD5f0sCPPWT0gmlUXz1C4sLufYrMw8C9 iZZmqMzIgnZdKd9jkWxzo3uKLGIJklaIvH5x1PTJJQxX3BZau82k6pcKYF8KHLhJuavZ4R qRB1zK1caYnoTf/yWV+wGQA/qfKzkSo= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-217-eX_6BgD7MaexIHiOHTDneQ-1; Sat, 25 Nov 2023 05:26:36 -0500 X-MC-Unique: eX_6BgD7MaexIHiOHTDneQ-1 Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-5be39ccc2e9so3333579a12.3 for ; Sat, 25 Nov 2023 02:26:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700907995; x=1701512795; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wLQCR+hwcyQJXO1rzDrTi8/6fcFm4TdvVYYy57cW/E0=; b=Ue8LVaeXKYf8qIlt/TL2M76UsT3soPW3fGRtByNMuS+v5qGWExEzWIJMEI/LoPZaMn 9K1CwzTWMEW5GEnoSrTidMV8YHt8Qy/WfyfOi1Qm7N1c4Cxcq4OTl0WK7g8zBa1u/oBL LIhM9xtc/9inXzIC9DClEPgGLusyZV9u0kt9whKqCWeLFV8i0WeSzcgy19XLrWwPUoxR AQBBSimh+ndL5piJFObtQK4bH36vIm+sz3TbKMnrbcnb2/0z7dXTNul+yhRdNtNZTf1D puXyx48/nHRVcwRGPg7sH8jmSLHZbXLZIoOJ58+WTqVP+FF/P9XNVkjytR981aWHIG4s bakg== X-Gm-Message-State: AOJu0YycQy+o9PRhSfMTMyoU4+nXGzgLdPuAawzFO/vTENeU7v4yCXGi ypOTduBj7vGH9cTnxhtd4BEO1F6YCZelbg5V7UeEDJWzeXzJEAYSm8QZ4aRgJcCqLm0ytlwvdzE g0oME9Hzp1AnajoWjWKrRP7nrlcfVmLGzMnng1CH7 X-Received: by 2002:a05:6a20:729c:b0:18b:826c:411b with SMTP id o28-20020a056a20729c00b0018b826c411bmr7123664pzk.17.1700907995673; Sat, 25 Nov 2023 02:26:35 -0800 (PST) X-Received: by 2002:a05:6a20:729c:b0:18b:826c:411b with SMTP id o28-20020a056a20729c00b0018b826c411bmr7123650pzk.17.1700907995306; Sat, 25 Nov 2023 02:26:35 -0800 (PST) MIME-Version: 1.0 References: <20231124075953.1932764-1-yukuai1@huaweicloud.com> In-Reply-To: <20231124075953.1932764-1-yukuai1@huaweicloud.com> From: Xiao Ni Date: Sat, 25 Nov 2023 18:26:24 +0800 Message-ID: Subject: Re: [PATCH v2 0/6] md: bugfix and cleanup for sync_thread To: Yu Kuai Cc: song@kernel.org, yukuai3@huawei.com, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 pete.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 (pete.vger.email [0.0.0.0]); Sat, 25 Nov 2023 02:31:05 -0800 (PST) On Fri, Nov 24, 2023 at 4:00=E2=80=AFPM Yu Kuai w= rote: > > 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 > For the series Acked-by: Xiao Ni