Date: Tue, 8 May 2007 21:49:59 +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 kern_condvar.c kern_synch.c Message-ID: <200705082149.l48LnxIp061129@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2007-05-08 21:49:59 UTC FreeBSD src repository Modified files: sys/kern kern_condvar.c kern_synch.c Log: Fix a potential LOR with sx_sleep() and cv_wait() with sx locks by 1) adding the thread to the sleepq via sleepq_add() before dropping the lock, and 2) dropping the sleepq lock around calls to lc_unlock() for sleepable locks (i.e. locks that use sleepq's in their implementation). Revision Changes Path 1.61 +25 -5 src/sys/kern/kern_condvar.c 1.294 +7 -1 src/sys/kern/kern_synch.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705082149.l48LnxIp061129>