mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
avoid exclusive sleep mutex.
This commit is contained in:
parent
b3740d656f
commit
1c44678637
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149148
@ -1018,10 +1018,10 @@ walk_addrsel_policy(callback, w)
|
||||
ADDRSEL_LOCK();
|
||||
for (pol = TAILQ_FIRST(&addrsel_policytab); pol;
|
||||
pol = TAILQ_NEXT(pol, ape_entry)) {
|
||||
if ((error = (*callback)(&pol->ape_policy, w)) != 0) {
|
||||
ADDRSEL_UNLOCK();
|
||||
ADDRSEL_UNLOCK();
|
||||
if ((error = (*callback)(&pol->ape_policy, w)) != 0)
|
||||
return (error);
|
||||
}
|
||||
ADDRSEL_LOCK();
|
||||
}
|
||||
ADDRSEL_UNLOCK();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user