ktls: Use the new PNOLOCK flag
Use the new PNOLOCK flag to tsleep() to indicate that we are managing potential races, and don't need to sleep with a lock, or have a backstop timeout. Reviewed by: jhb Sponsored by: Netflix
This commit is contained in:
parent
1b97a054f3
commit
09066b9866
@ -2240,7 +2240,7 @@ ktls_alloc_thread(void *ctx)
|
||||
nbufs = 0;
|
||||
for (;;) {
|
||||
atomic_store_int(&sc->running, 0);
|
||||
tsleep_sbt(sc, PZERO, "waiting for work", SBT_MAX, SBT_1S, 0);
|
||||
tsleep(sc, PZERO | PNOLOCK, "-", 0);
|
||||
atomic_store_int(&sc->running, 1);
|
||||
sc->wakeups++;
|
||||
if (nbufs != ktls_max_alloc) {
|
||||
|
Loading…
Reference in New Issue
Block a user