Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 127b21b8 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Adjust rpciod workqueue parameters



Increase the concurrency level for rpciod threads to allow for allocations
etc that happen in the RPCSEC_GSS layer. Also note that the NFSv4 byte range
locks may now need to allocate memory from inside rpciod.

Add the WQ_HIGHPRI flag to improve latency guarantees while we're at it.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 40dd4b7a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1069,7 +1069,8 @@ static int rpciod_start(void)
	 * Create the rpciod thread and wait for it to start.
	 */
	dprintk("RPC:       creating workqueue rpciod\n");
	wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 1);
	/* Note: highpri because network receive is latency sensitive */
	wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
	rpciod_workqueue = wq;
	return rpciod_workqueue != NULL;
}