From abb48085814358fc077c109f36fcb14a26fff1f7 Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Tue, 8 Jun 2021 14:27:42 +1000 Subject: xfs: introduce CPU hotplug infrastructure We need to move to per-cpu state for CIL tracking, but to do that we need to handle CPUs being removed from the system by the hot-plug code. Introduce generic XFS infrastructure to handle CPU hotplug events that is set up at module init time and torn down at module exit time. Initially, the CIL only needs CPU dead notifications, so we only set up a callback for these notifications. The infrastructure can be updated in future for CPU add notifications easily if every needed. Signed-off-by: Dave Chinner Reviewed-by: Darrick J. Wong --- include/linux/cpuhotplug.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index 4a62b3980642..bf8f29ad9bf8 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -52,6 +52,7 @@ enum cpuhp_state { CPUHP_FS_BUFF_DEAD, CPUHP_PRINTK_DEAD, CPUHP_MM_MEMCQ_DEAD, + CPUHP_XFS_DEAD, CPUHP_PERCPU_CNT_DEAD, CPUHP_RADIX_DEAD, CPUHP_PAGE_ALLOC_DEAD, -- cgit v1.2.3