mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Backout rev 1.17, msleep() can't be used with a spinlock.
Pointy hat to: cognet
This commit is contained in:
parent
ec383c971f
commit
aed12d5ff8
1 changed files with 6 additions and 2 deletions
|
|
@ -224,7 +224,9 @@ alq_shutdown(struct alq *alq)
|
|||
/* Drain IO */
|
||||
while (alq->aq_flags & (AQ_FLUSHING|AQ_ACTIVE)) {
|
||||
alq->aq_flags |= AQ_WANTED;
|
||||
msleep(alq, &(alq)->aq_mtx, PWAIT, "aldclose", 0);
|
||||
ALQ_UNLOCK(alq);
|
||||
tsleep(alq, PWAIT, "aldclose", 0);
|
||||
ALQ_LOCK(alq);
|
||||
}
|
||||
ALQ_UNLOCK(alq);
|
||||
|
||||
|
|
@ -431,7 +433,9 @@ alq_get(struct alq *alq, int waitok)
|
|||
(ale = alq->aq_entfree) == NULL &&
|
||||
(waitok & ALQ_WAITOK)) {
|
||||
alq->aq_flags |= AQ_WANTED;
|
||||
msleep(alq, &(alq)->aq_mtx, PWAIT, "alqget", 0);
|
||||
ALQ_UNLOCK(alq);
|
||||
tsleep(alq, PWAIT, "alqget", 0);
|
||||
ALQ_LOCK(alq);
|
||||
}
|
||||
|
||||
if (ale != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue