Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp9375lqi; Wed, 6 Mar 2024 08:40:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW550KRv/Gef1MqiEfQsYW0ltC+/qbSy8mxGeQAXZDhUjMkqPvYUYPThkY2whpz61FIB/OGNZrFKgBBlZFk4FNzYRkTZNjPjYINeKn62Q== X-Google-Smtp-Source: AGHT+IFhb8aB8+x9cX7JkFJFaI3agYJj9v3wgEJTCLj3cQcNz2EjVnpOwAqkbbzWaxn7QboTW8ld X-Received: by 2002:a62:c1c2:0:b0:6e5:e41f:fe4e with SMTP id i185-20020a62c1c2000000b006e5e41ffe4emr14491850pfg.4.1709743209428; Wed, 06 Mar 2024 08:40:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709743209; cv=pass; d=google.com; s=arc-20160816; b=E120DKrZ/TkYRhuszpi3yXxmP2SW9N7C6WLyIP7DK2E/6Sh+7CgPInA0a/6rDF8KmS sGjBQ6x7gc9a+scVv+sidfxhzBnVeD7zDHFE6EZ96PaWhSFGAVl76cqVDg41pkjlYWkj bKrlRfpCtDZnkVY5MmfG2feQAtwB+XUosMWPhVwHCb5rCv/z0GYyN7ZMOI6czhrm1hsq 8qON1JnedilFWEMGqsBj01FC7qi3+jNoRKDsKqorZxaeu+aGzSHNkOUDjXDySPgAj1I5 Z1dHgQbppAz5qYm/K013kwbT/bdG3y4ZkpQnjzXQRY0aZCjhimTDSTV0RJv3EDZcpOHb VXng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VE/p3zEbjnqsvapUKD1Pc7rajltDT/VPnIDvl+Y2QzA=; fh=eb8B0XSeJyEtGo++XXjN/KZrUNcIOewid9zZEorx61A=; b=0MZzi7veGVywyQH+zUVWSHcYOPopznfA7CdqAZC0iwPRwrtaPIPmsMuYgisAJAm3Ca O/hBVrNckz1ACU2A1dHHWxW1oiE2nPKAQGS1xXpqN5dl3d8lwLSglUErhUrLLQw0rx6a PBOEVp/J1gr1jpehah8RA3L1gqD63wfmqUXCjozfnwafYLtuNWf7XaajVZNq1lifM0vx yXzHF1aXz5xX7XpkuFGLE7sdZm0ust+vjSP9wBKRIuPXMluHIjC5zSPWsjGyn6pIoXjh uvpjTWv6SmYzB3Z4y/ainlB8OUB5CEI/06SNuMEJSF+gPlHye5ZFICcKFl2l9pPzrw6U KM8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l2//RLvO"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fb22-20020a056a002d9600b006e5e84cc230si8062733pfb.89.2024.03.06.08.40.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 08:40:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l2//RLvO"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B8C928748D for ; Wed, 6 Mar 2024 16:40:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC56B13791D; Wed, 6 Mar 2024 16:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l2//RLvO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0DA360882; Wed, 6 Mar 2024 16:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709743200; cv=none; b=A9j8yj4IvexJYZTJv+pAJ4TV4cRDjEaFqVlI5fc9d+8cqmyOKa6uDiOAlH7jHnxdq4XTn1uIYGOuNKd5kPXhGaXM4IkgXBE2V4sEjUAr2UiltlyEgzhBqtRRxvJDt/hSUzz6aapQQFDPLXTu4KF55TxJ3947XUf6xEmpdEgISd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709743200; c=relaxed/simple; bh=f2HncGmBSaycsoO1hVr4ckiuD3QmlN8sKiSzANUFi4s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LquKz55gSZrHXG7RppXZzpQHY/RHTc3mNM/7Y2OF/PMPjOwXGIzEAcT7dQ5GhgAADPZr/X4o0XJ+wHEgMq//vWl9leG8nifjfBASkvFGHZG9xXPb3vleNcJBKxt439Y+SZ6I83PBNB+46E6Kg3XFswn/TreNWJU2OAfy+ke94do= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l2//RLvO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A31B7C433B1; Wed, 6 Mar 2024 16:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709743199; bh=f2HncGmBSaycsoO1hVr4ckiuD3QmlN8sKiSzANUFi4s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l2//RLvO+FP5yOMMBdksci8jS3e1c3vrbsnRNekaD60yrh9AO1oKZUk8wryDw8ibS +GHbDMPAXZu3PtuD3PzTQrDjE4SLTsVbHie5UPNKjHQ9k0vMM/vhONh9+YeeJsMSRw IV5tVZn502X++dVY0R2em9HNPNBnUBp/xr1sJi1/pATeikwsb+fQ83GiAOXNZyMaJp 9UbW9lJVyfmmDhSiZKmtdKve7OPpraCEdgQZEcubdBw/VABDBuv7gT4SD3H2FaTUcU D4U/LFOYiX4BGjhbfGoxeeRR6aEIQFTNHpYIRYkcNi3f/fKHcs/gypxHCLRQ5H/5tk NKZKhPIKrGRvg== Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51320ca689aso8618156e87.2; Wed, 06 Mar 2024 08:39:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV6/PceRJe/Gf+QIQaw9b52yvEjBex1nwybh+BbvQ2D1Wc/0CygDnQfx/id/fyZ3xwv8gtzhG9BS9hqGTW9Xo6Y5ASW15rLwOStUcch7Gi+CRd+qMqGjIGLsIWDsEqKKQ9SaPOJ++HUqQ== X-Gm-Message-State: AOJu0Ywg330imPKoiJezqqUs1Gm4QTaqHaLmnVwLNEOvQl6+CmpCZi7a I3w+0w63b1TpSeNzx0C+0CQ9SQKiJyDludZPZ3HizNwGjNBHYrZmw2ZCY5HzcVQi9etGPA3Vkj6 rTKY7zcIV+R1cw6GMoNufmC0zcB8= X-Received: by 2002:a05:6512:48c3:b0:512:a9b7:c637 with SMTP id er3-20020a05651248c300b00512a9b7c637mr3568369lfb.29.1709743197678; Wed, 06 Mar 2024 08:39:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240305072306.2562024-1-yukuai1@huaweicloud.com> <20240305072306.2562024-3-yukuai1@huaweicloud.com> <9950cb96-ac8b-d7dd-56a0-133709f51b5f@huaweicloud.com> In-Reply-To: From: Song Liu Date: Wed, 6 Mar 2024 08:39:45 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH md-6.8 v2 2/9] md: export helpers to stop sync_thread To: Paul Menzel Cc: Yu Kuai , xni@redhat.com, zkabelac@redhat.com, agk@redhat.com, snitzer@kernel.org, mpatocka@redhat.com, dm-devel@lists.linux.dev, heinzm@redhat.com, jbrassow@redhat.com, neilb@suse.de, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, yukuai3@huawei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Paul, Thanks for reviewing the patch! On Wed, Mar 6, 2024 at 7:10=E2=80=AFAM Paul Menzel = wrote: > > Dear Kuai, > > > Am 05.03.24 um 09:13 schrieb Yu Kuai: > > > =E5=9C=A8 2024/03/05 16:08, Paul Menzel =E5=86=99=E9=81=93: > > >> Am 05.03.24 um 08:22 schrieb Yu Kuai: > >>> From: Yu Kuai > >>> > >>> The new heleprs will be used in dm-raid in later patches to fix > >> > >> hel*pe*rs > >> > >>> regressions and prevent calling md_reap_sync_thread() directly. > >> > >> Please list the new functions. > >> > >> 1. md_idle_sync_thread(struct mddev *mddev); > >> 2. md_frozen_sync_thread(struct mddev *mddev); > >> 3. md_unfrozen_sync_thread(struct mddev *mddev); > >> > >> I do not like the naming so much. `md_reap_sync_thread()` has the verb > >> in imperative mood. At least myself, I would not know what the > >> functions do exactly without looking at the implementation. > > > > Thanks for the suggestions, I'm not that good at naming :( > > > > Usually I'll send a new version with updated naming, however, we must > > merge this set ASAP now, perhaps can we live with this for now? > > Fine by me. Maybe when applying the typo can be fixed, and the naming > than later. Yes, I did exactly this when applying the patches, but forgot to mention it here. Song