mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Add another 5.2.1 source compatibility tweak: acquire Giant before calling
kthread_exit() if FreeBSD_version is old enough.
This commit is contained in:
parent
9d780a43c4
commit
bd610e47e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130166
@ -244,6 +244,9 @@ ndis_runq(arg)
|
||||
}
|
||||
|
||||
wakeup(die);
|
||||
#if __FreeBSD_version < 502113
|
||||
mtx_lock(&Giant);
|
||||
#endif
|
||||
kthread_exit(0);
|
||||
return; /* notreached */
|
||||
}
|
||||
|
@ -1609,6 +1609,9 @@ ntoskrnl_thread_exit(status)
|
||||
|
||||
ntoskrnl_kth--;
|
||||
|
||||
#if __FreeBSD_version < 502113
|
||||
mtx_lock(&Giant);
|
||||
#endif
|
||||
kthread_exit(0);
|
||||
return(0); /* notreached */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user