Date: Thu, 27 Sep 2007 18:39:19 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_turnstile.c Message-ID: <200709271839.l8RIdJ7f050638@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2007-09-27 18:39:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern subr_turnstile.c Log: - Remove some debugging nits in the MFC of rwlocks that looked for cases where a reader blocked on a lock with no owner and just assert that it never happens like HEAD. - Actually set td->td_tsqueue to the sub-queue of a turnstile that a thread is actually enqueued to. Otherwise, the kernel would always think that threads were on the queue for exclusive (write) waiters (queue 0). Thus, if the priority of a thread waiting on a read lock was adjusted while it was waiting it could result in corrupting the queue of waiting threads. Revision Changes Path 1.152.2.9 +14 -17 src/sys/kern/subr_turnstile.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709271839.l8RIdJ7f050638>