Ignore LC_SLEEPABLE when testing whether a mutex is adaptive.
MFC after: 1 week
This commit is contained in:
parent
6a4b451a11
commit
4153c9b932
@ -4356,9 +4356,7 @@ dtrace_dif_subr(uint_t subr, uint_t rd, uint64_t *regs,
|
||||
break;
|
||||
}
|
||||
l.lx = dtrace_loadptr((uintptr_t)&tupregs[0].dttk_value);
|
||||
/* XXX - should be only LC_SLEEPABLE? */
|
||||
regs[rd] = (LOCK_CLASS(l.li)->lc_flags &
|
||||
(LC_SLEEPLOCK | LC_SLEEPABLE)) != 0;
|
||||
regs[rd] = (LOCK_CLASS(l.li)->lc_flags & LC_SLEEPLOCK) != 0;
|
||||
break;
|
||||
|
||||
case DIF_SUBR_MUTEX_TYPE_SPIN:
|
||||
|
Loading…
Reference in New Issue
Block a user