Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2016 22:21:49 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303562 - head/sys/kern
Message-ID:  <201607302221.u6UMLn4E035551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607302221.u6UMLn4E035551>