Date: Thu, 6 Mar 2003 09:44:26 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 26435 for review Message-ID: <200303061744.h26HiQBT035374@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=26435 Change 26435 by jhb@jhb_laptop on 2003/03/06 09:44:05 We don't actually need sched_lock to test TDF_DEADLKTREAT because we only ever set it on curthread and test it on curthread. Affected files ... .. //depot/projects/smpng/sys/kern/kern_lock.c#22 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_lock.c#22 (text+ko) ==== @@ -265,10 +265,8 @@ */ if (lkp->lk_lockholder != thr) { lockflags = LK_HAVE_EXCL; - mtx_lock_spin(&sched_lock); if (td != NULL && !(td->td_flags & TDF_DEADLKTREAT)) lockflags |= LK_WANT_EXCL | LK_WANT_UPGRADE; - mtx_unlock_spin(&sched_lock); error = acquire(&lkp, extflags, lockflags); if (error) break; 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?200303061744.h26HiQBT035374>