From: Dave Chinner <david@fromorbit.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: chandan.babu@gmail.com, linux-xfs@vger.kernel.org,
ritesh.list@gmail.com, sandeen@sandeen.net
Subject: Re: [PATCH 3/3] xfs: remove cpu hotplug hooks
Date: Fri, 25 Aug 2023 10:15:13 +1000 [thread overview]
Message-ID: <ZOfykRAQagl3cIvX@dread.disaster.area> (raw)
In-Reply-To: <169291929160.219974.11113805270455831702.stgit@frogsfrogsfrogs>
On Thu, Aug 24, 2023 at 04:21:31PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> There are no users of the cpu hotplug hooks in xfs now, so remove the
> infrastructure.
>
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> ---
> fs/xfs/xfs_super.c | 50 +-------------------------------------------
> include/linux/cpuhotplug.h | 1 -
> 2 files changed, 1 insertion(+), 50 deletions(-)
Looks good.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
>
>
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index 6a4f8b2f6159..1403aace4fe3 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -2301,47 +2301,6 @@ xfs_destroy_workqueues(void)
> destroy_workqueue(xfs_alloc_wq);
> }
>
> -#ifdef CONFIG_HOTPLUG_CPU
> -static int
> -xfs_cpu_dead(
> - unsigned int cpu)
> -{
> - struct xfs_mount *mp, *n;
> -
> - spin_lock(&xfs_mount_list_lock);
> - list_for_each_entry_safe(mp, n, &xfs_mount_list, m_mount_list) {
> - spin_unlock(&xfs_mount_list_lock);
> - spin_lock(&xfs_mount_list_lock);
> - }
> - spin_unlock(&xfs_mount_list_lock);
> - return 0;
> -}
You also can kill the xfs_mount_list and xfs_mount_list_lock now,
right? That can be done in a separate patch, though.
-Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2023-08-25 0:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 23:21 [PATCHSET 0/3] xfs: fix cpu hotplug mess Darrick J. Wong
2023-08-24 23:21 ` [PATCH 1/3] xfs: fix per-cpu CIL structure aggregation racing with dying cpus Darrick J. Wong
2023-08-24 23:53 ` Dave Chinner
2023-08-25 4:07 ` Darrick J. Wong
2023-08-24 23:21 ` [PATCH 2/3] xfs: use per-mount cpumask to track nonempty percpu inodegc lists Darrick J. Wong
2023-08-25 0:12 ` Dave Chinner
2023-08-25 4:07 ` Darrick J. Wong
2023-08-24 23:21 ` [PATCH 3/3] xfs: remove cpu hotplug hooks Darrick J. Wong
2023-08-25 0:15 ` Dave Chinner [this message]
2023-08-24 23:45 ` [PATCH 4/3] generic/650: race mount and unmount with cpu hotplug too Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZOfykRAQagl3cIvX@dread.disaster.area \
--to=david@fromorbit.com \
--cc=chandan.babu@gmail.com \
--cc=djwong@kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=ritesh.list@gmail.com \
--cc=sandeen@sandeen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.