1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Kill the last Giant acquisition in the exit(2) code. This Giant acquisition

doesn't appear to be protecting anything. Most of consumers funsetownlst(9)
do not appear to be picking up Giant anywhere. This was originally a part
of my Giant exit(2) clean up revision 1.272 but I thought it was a good idea
to leave it out until we were able to analyze it better.

Tested by:	kris
MFC after:	3 weeks
This commit is contained in:
Christian S.J. Peron 2006-04-10 14:07:28 +00:00
parent 3d92875aed
commit d5e5634075
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157632

View File

@ -266,9 +266,7 @@ exit1(struct thread *td, int rv)
* Reset any sigio structures pointing to us as a result of
* F_SETOWN with our pid.
*/
mtx_lock(&Giant); /* XXX: not sure if needed */
funsetownlst(&p->p_sigiolst);
mtx_unlock(&Giant);
/*
* If this process has an nlminfo data area (for lockd), release it