From: Shaun Tancheff Date: Thu, 27 Jun 2024 10:49:22 +0000 (+0700) Subject: LU-17984 lnet: Remove the correct state on failure X-Git-Tag: 2.15.65~97 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c63575df829c34000d24a9adb9ad8df006a450b4;p=fs%2Flustre-release.git 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 --- 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);