lockstat:::thread-spin should only fire after spinning for the lock.
MFC after: 1 week
This commit is contained in:
parent
008024f2b8
commit
156fbc14a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300103
@ -714,7 +714,8 @@ thread_lock_flags_(struct thread *td, int opts, const char *file, int line)
|
||||
LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
|
||||
line);
|
||||
WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
|
||||
LOCKSTAT_RECORD1(thread__spin, m, spin_time);
|
||||
if (spin_time != 0)
|
||||
LOCKSTAT_RECORD1(thread__spin, m, spin_time);
|
||||
}
|
||||
|
||||
struct mtx *
|
||||
|
Loading…
Reference in New Issue
Block a user