From c63575df829c34000d24a9adb9ad8df006a450b4 Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Thu, 27 Jun 2024 17:49:22 +0700 Subject: [PATCH] LU-17984 lnet: Remove the correct state on failure On cpu init a failure to setup CPUHP_AP_ONLINE_DYN should remove the previously setup state CPUHP_BP_PREPARE_DYN CPUHP_AP_ONLINE_DYN should be CPUHP_BP_PREPARE_DYN Test-Parameters: trivial Fixes: 6d27c2c8c72 ("LU-17592 build: compatibility updates for kernel 6.8") Signed-off-by: Shaun Tancheff Change-Id: Ic9fc9dd4e798be3a0db65092e2b8e545ec5d4687 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55552 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Petros Koutoupis Reviewed-by: Caleb Carlson Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lnet/lnet/lib-cpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/lnet/lib-cpt.c b/lnet/lnet/lib-cpt.c index c86f566..a922b37 100644 --- a/lnet/lnet/lib-cpt.c +++ b/lnet/lnet/lib-cpt.c @@ -1323,7 +1323,7 @@ failed_alloc_table: if (lustre_cpu_online > 0) cpuhp_remove_state_nocalls(lustre_cpu_online); failed_cpu_online: - cpuhp_remove_state_nocalls(CPUHP_AP_ONLINE_DYN); + cpuhp_remove_state_nocalls(CPUHP_BP_PREPARE_DYN); failed_cpu_dead: #else unregister_hotcpu_notifier(&cfs_cpu_notifier); -- 1.8.3.1