fork1(): properly track the state of the pg_killsx lock

Reported by:	dchagin
Fixes:	232b922cb3
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov
2023-07-27 02:24:30 +03:00
parent ab65c64bc4
commit 474708c334
+1
View File
@@ -989,6 +989,7 @@ fork1(struct thread *td, struct fork_req *fr)
* lock. * lock.
*/ */
sx_sunlock(&pg->pg_killsx); sx_sunlock(&pg->pg_killsx);
killsx_locked = false;
error = ERESTART; error = ERESTART;
goto fail2; goto fail2;
} else { } else {