mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Have lockstat:::sx-release fire only after the lock state has changed.
MFC after: 1 week
This commit is contained in:
parent
26d94f99af
commit
dbe4541db2
1 changed files with 1 additions and 2 deletions
|
|
@ -1180,8 +1180,6 @@ _sx_sunlock_hard(struct sx *sx, uintptr_t x LOCK_FILE_LINE_ARG_DEF)
|
|||
if (SCHEDULER_STOPPED())
|
||||
return;
|
||||
|
||||
LOCKSTAT_PROFILE_RELEASE_RWLOCK(sx__release, sx, LOCKSTAT_READER);
|
||||
|
||||
for (;;) {
|
||||
if (_sx_sunlock_try(sx, &x))
|
||||
break;
|
||||
|
|
@ -1217,6 +1215,7 @@ _sx_sunlock_hard(struct sx *sx, uintptr_t x LOCK_FILE_LINE_ARG_DEF)
|
|||
kick_proc0();
|
||||
break;
|
||||
}
|
||||
LOCKSTAT_PROFILE_RELEASE_RWLOCK(sx__release, sx, LOCKSTAT_READER);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue