Skip to content

SUNRPC: various thread management improvements

NeilBrown linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12SUNRPC: make rqst_should_sleep() idempotent()net/sunrpc/svc_xprt.c+5 -34 replies
2/12FIXUP: SUNRPC: Deduplicate thread wake-up codeinclude/linux/sunrpc/svc.h net/sunrpc/svc.c+3 -70 replies
3/12FIXUP: SUNRPC: call svc_process() from svc_recv()net/sunrpc/svc.c+0 -11 reply
4/12nfsd: Simplify code around svc_exit_thread() call in nfsd()fs/nfsd/nfssvc.c include/linux/sunrpc/svc.h+0 -360 replies
5/12nfsd: separate nfsd_last_thread() from nfsd_put()fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+25 -341 reply
6/12SUNRPC: rename and refactor svc_get_next_xprt().net/sunrpc/svc_xprt.c+31 -313 replies
7/12SUNRPC: move all of xprt handling into svc_xprt_handle()net/sunrpc/svc_xprt.c+20 -330 replies
8/12SUNRPC: move task-dequeueing code into svc_recv()net/sunrpc/svc_xprt.c+32 -350 replies
9/12SUNRPC: integrate back-channel processing with svc_recv()fs/nfs/callback.c include/linux/sunrpc/svc.h net/sunrpc/backchannel_rqst.c +3 more+39 -530 replies
10/12SUNRPC: change how svc threads are asked to exit.fs/lockd/svc.c fs/lockd/svclock.c fs/nfs/callback.c +7 more+62 -410 replies
11/12SUNRPC: add list of idle threadsinclude/linux/sunrpc/svc.h include/trace/events/sunrpc.h net/sunrpc/svc.c +1 more+43 -110 replies
12/12SUNRPC: discard SP_CONGESTEDinclude/linux/sunrpc/svc.h include/trace/events/sunrpc.h net/sunrpc/svc.c +1 more+1 -70 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchJeff Layton
1/12R-b
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] SUNRPC: various thread management improvements

This patch set is against topic-sunrpc-thread-scheduling.
The series contains 2 fix-ups that I suggest be merged into earlier patches in the topic branch with matching name.
For the first to work, patch 01/12 needs to be inserted before the first fixed patch.
Remaining 9 patches can go at the end.

An end result of this is that waking up an idle thread no longer searches the list of all threads. However it does requiring taking a spinlock, though it has a very short hold time.

If/when these successfully land in the topic branch (or earlier if you like) I can post a further collection of patches which removes that new locking and reduces locking for the queueing of transports and NFSv4.1 callback requests.

Thanks,
NeilBrown