Whamcloud - gitweb
LU-17984 lnet: Remove the correct state on failure 52/55552/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 27 Jun 2024 10:49:22 +0000 (17:49 +0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Jul 2024 20:54:35 +0000 (20:54 +0000)
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 <shaun.tancheff@hpe.com>
Change-Id: Ic9fc9dd4e798be3a0db65092e2b8e545ec5d4687
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55552
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Caleb Carlson <caleb.carlson@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-cpt.c

index c86f566..a922b37 100644 (file)
@@ -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);