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:
@@ -989,6 +989,7 @@ fork1(struct thread *td, struct fork_req *fr)
|
||||
* lock.
|
||||
*/
|
||||
sx_sunlock(&pg->pg_killsx);
|
||||
killsx_locked = false;
|
||||
error = ERESTART;
|
||||
goto fail2;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user