Date: Thu, 27 Jul 2006 21:45:55 +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_mutex.c kern_rwlock.c kern_sx.c Message-ID: <200607272145.k6RLjtAD030928@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2006-07-27 21:45:55 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c kern_rwlock.c kern_sx.c Log: Adjust td_locks for non-spin mutexes, rwlocks, and sx locks so that it is a count of all non-spin locks, not just lockmgr locks. This can give us a much cheaper way to see if we have any locks held (such as when returning to userland via userret()) without requiring WITNESS. MFC after: 1 week Revision Changes Path 1.175 +7 -1 src/sys/kern/kern_mutex.c 1.10 +4 -0 src/sys/kern/kern_rwlock.c 1.29 +6 -0 src/sys/kern/kern_sx.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607272145.k6RLjtAD030928>