lockstat:::thread-spin should only fire after spinning for the lock.
MFC after: 1 week
This commit is contained in:
parent
008024f2b8
commit
156fbc14a0
@ -714,7 +714,8 @@ retry:
|
||||
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…
x
Reference in New Issue
Block a user