Date: Thu, 13 Jun 2002 18:48:46 -0700 (PDT) From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 12865 for review Message-ID: <200206140148.g5E1mk536809@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12865 Change 12865 by julian@julian_jules1 on 2002/06/13 18:48:14 Even non KSE threads need to check for suspended state Affected files ... ... //depot/projects/kse/sys/kern/subr_trap.c#62 edit Differences ... ==== //depot/projects/kse/sys/kern/subr_trap.c#62 (text+ko) ==== @@ -114,10 +114,10 @@ * We also need to check to see if we have to exit or wait due to a * single threading requirement. */ + PROC_LOCK(p); + thread_suspend_check(0); /* Can suspend or kill */ + PROC_UNLOCK(p); if (p->p_flag & P_KSES) { - PROC_LOCK(p); - thread_suspend_check(0); /* Can suspend or kill */ - PROC_UNLOCK(p); if (ke->ke_tdspare == NULL) { mtx_lock(&Giant); ke->ke_tdspare = thread_alloc(); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206140148.g5E1mk536809>