svn commit: r235300 - head/sys/kern

Xin LI delphij at FreeBSD.org
Fri May 11 23:41:53 UTC 2012


Author: delphij
Date: Fri May 11 23:41:52 2012
New Revision: 235300
URL: http://svn.freebsd.org/changeset/base/235300

Log:
  Release proc lock after setting signal queue.
  
  PR:		kern/167727
  Submitted by:	Jinjun Gao <gjinjun gmail com>
  MFC after:	2 weeks

Modified:
  head/sys/kern/kern_kthread.c

Modified: head/sys/kern/kern_kthread.c
==============================================================================
--- head/sys/kern/kern_kthread.c	Fri May 11 23:36:26 2012	(r235299)
+++ head/sys/kern/kern_kthread.c	Fri May 11 23:41:52 2012	(r235300)
@@ -182,6 +182,7 @@ kproc_suspend(struct proc *p, int timo)
 		return (EINVAL);
 	}
 	SIGADDSET(p->p_siglist, SIGSTOP);
+	PROC_UNLOCK(p);
 	wakeup(p);
 	return msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, "suspkp", timo);
 }


More information about the svn-src-head mailing list