svn commit: r303562 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sat Jul 30 22:21:50 UTC 2016


Author: mjg
Date: Sat Jul 30 22:21:48 2016
New Revision: 303562
URL: https://svnweb.freebsd.org/changeset/base/303562

Log:
  rwlock: s/READER/WRITER/ in wlock lockstat annotation

Modified:
  head/sys/kern/kern_rwlock.c

Modified: head/sys/kern/kern_rwlock.c
==============================================================================
--- head/sys/kern/kern_rwlock.c	Sat Jul 30 21:06:59 2016	(r303561)
+++ head/sys/kern/kern_rwlock.c	Sat Jul 30 22:21:48 2016	(r303562)
@@ -920,7 +920,7 @@ __rw_wlock_hard(volatile uintptr_t *c, u
 	/* Record only the loops spinning and not sleeping. */
 	if (spin_cnt > sleep_cnt)
 		LOCKSTAT_RECORD4(rw__spin, rw, all_time - sleep_time,
-		    LOCKSTAT_READER, (state & RW_LOCK_READ) == 0,
+		    LOCKSTAT_WRITER, (state & RW_LOCK_READ) == 0,
 		    (state & RW_LOCK_READ) == 0 ? 0 : RW_READERS(state));
 #endif
 	LOCKSTAT_PROFILE_OBTAIN_RWLOCK_SUCCESS(rw__acquire, rw, contested,


More information about the svn-src-all mailing list