Date: Tue, 19 May 2009 03:21:52 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r192367 - user/kmacy/releng_7_2_fcs/sys/kern Message-ID: <200905190321.n4J3Lqnb083588@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Tue May 19 03:21:51 2009 New Revision: 192367 URL: http://svn.freebsd.org/changeset/base/192367 Log: fix calls to sleepq_broadcast to pass a 0 priority Modified: user/kmacy/releng_7_2_fcs/sys/kern/kern_sx.c user/kmacy/releng_7_2_fcs/sys/kern/kern_synch.c Modified: user/kmacy/releng_7_2_fcs/sys/kern/kern_sx.c ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/kern/kern_sx.c Tue May 19 03:09:04 2009 (r192366) +++ user/kmacy/releng_7_2_fcs/sys/kern/kern_sx.c Tue May 19 03:21:51 2009 (r192367) @@ -401,7 +401,7 @@ _sx_downgrade(struct sx *sx, const char (x & SX_LOCK_EXCLUSIVE_WAITERS)); if (x & SX_LOCK_SHARED_WAITERS) wakeup_swapper = sleepq_broadcast(&sx->lock_object, SLEEPQ_SX, - -1, SQ_SHARED_QUEUE); + 0, SQ_SHARED_QUEUE); sleepq_release(&sx->lock_object); LOCK_LOG_LOCK("XDOWNGRADE", &sx->lock_object, 0, 0, file, line); @@ -627,7 +627,7 @@ _sx_xunlock_hard(struct sx *sx, uintptr_ __func__, sx, queue == SQ_SHARED_QUEUE ? "shared" : "exclusive"); atomic_store_rel_ptr(&sx->sx_lock, x); - wakeup_swapper = sleepq_broadcast(&sx->lock_object, SLEEPQ_SX, -1, + wakeup_swapper = sleepq_broadcast(&sx->lock_object, SLEEPQ_SX, 0, queue); sleepq_release(&sx->lock_object); if (wakeup_swapper) @@ -878,7 +878,7 @@ _sx_sunlock_hard(struct sx *sx, const ch CTR2(KTR_LOCK, "%s: %p waking up all thread on" "exclusive queue", __func__, sx); wakeup_swapper = sleepq_broadcast(&sx->lock_object, SLEEPQ_SX, - -1, SQ_EXCLUSIVE_QUEUE); + 0, SQ_EXCLUSIVE_QUEUE); sleepq_release(&sx->lock_object); if (wakeup_swapper) kick_proc0(); Modified: user/kmacy/releng_7_2_fcs/sys/kern/kern_synch.c ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/kern/kern_synch.c Tue May 19 03:09:04 2009 (r192366) +++ user/kmacy/releng_7_2_fcs/sys/kern/kern_synch.c Tue May 19 03:21:51 2009 (r192367) @@ -333,7 +333,7 @@ wakeup(void *ident) int wakeup_swapper; sleepq_lock(ident); - wakeup_swapper = sleepq_broadcast(ident, SLEEPQ_SLEEP, -1, 0); + wakeup_swapper = sleepq_broadcast(ident, SLEEPQ_SLEEP, 0, 0); sleepq_release(ident); if (wakeup_swapper) kick_proc0();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905190321.n4J3Lqnb083588>