Linux 5.17 compat: detect complete_and_exit() rename

Linux 5.17 sees a rename from complete_and_exit()
to kthread complete_and_exit()

Upstream commit cead18552660702a4a46f58e65188fe5f36e9dfe
("exit: Rename complete_and_exit to kthread_complete_and_exit")

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12989
This commit is contained in:
наб
2022-01-19 21:10:49 +01:00
committed by Tony Hutter
parent 8ef01afbfc
commit 2ce06d93a8
3 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ void
__thread_exit(void)
{
tsd_exit();
complete_and_exit(NULL, 0);
SPL_KTHREAD_COMPLETE_AND_EXIT(NULL, 0);
/* Unreachable */
}
EXPORT_SYMBOL(__thread_exit);