Use lower priority for GELI worker threads. This improves system
responsiveness under heavy GELI load. MFC after: 3 days
This commit is contained in:
parent
e1a4e3fa37
commit
31c4cef715
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206665
@ -340,7 +340,7 @@ g_eli_worker(void *arg)
|
||||
}
|
||||
#endif
|
||||
thread_lock(curthread);
|
||||
sched_prio(curthread, PRIBIO);
|
||||
sched_prio(curthread, PUSER);
|
||||
if (sc->sc_crypto == G_ELI_CRYPTO_SW && g_eli_threads == 0)
|
||||
sched_bind(curthread, wr->w_number);
|
||||
thread_unlock(curthread);
|
||||
@ -361,8 +361,7 @@ g_eli_worker(void *arg)
|
||||
mtx_unlock(&sc->sc_queue_mtx);
|
||||
kproc_exit(0);
|
||||
}
|
||||
msleep(sc, &sc->sc_queue_mtx, PRIBIO | PDROP,
|
||||
"geli:w", 0);
|
||||
msleep(sc, &sc->sc_queue_mtx, PDROP, "geli:w", 0);
|
||||
continue;
|
||||
}
|
||||
mtx_unlock(&sc->sc_queue_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user