Skip to content

rewrite of CB_LAYOUTRECALL and layoutstate code

Fred Isaman linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18NFSv4.1: Callback share session between opsfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c+113 -783 replies
2/18pnfs-submit: change pnfs_layout_segment refcounting from kref to atomic_tfs/nfs/pnfs.c fs/nfs/pnfs.h+17 -250 replies
3/18pnfs-submit: remove _pnfs_can_return_lseg call from pnfs_clear_lseg_listfs/nfs/nfs4xdr.c fs/nfs/pnfs.c fs/nfs/pnfs.h+95 -545 replies
4/18pnfs-submit: change layout state seqlock to a spinlockfs/nfs/callback_proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +1 more+24 -452 replies
5/18pnfs-submit: layoutreturn' rpc_call_op functions need to handle bulk returnsfs/nfs/callback_proc.c fs/nfs/nfs4proc.c fs/nfs/pnfs.c +1 more+23 -201 reply
6/18pnfs_submit: nfs4_layoutreturn_release should not reference resultsfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +2 more+18 -271 reply
7/18pnfs-submit: reorganize struct cb_layoutrecallargsfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c+28 -210 replies
8/18pnfs-submit: rename lo->state to lo->plh_flagsfs/nfs/pnfs.c fs/nfs/pnfs.h+12 -120 replies
9/18pnfs-submit: change pnfs_layout_hdr refcount to atomic_tfs/nfs/pnfs.c fs/nfs/pnfs.h+30 -220 replies
10/18pnfs-submit: argument to should_free_lseg changed from lseg to rangefs/nfs/pnfs.c+8 -80 replies
11/18pnfs-submit: remove unnecessary field lgp->statusfs/nfs/nfs4proc.c include/linux/nfs_xdr.h+1 -30 replies
12/18pnfs-submit: remove RPC_ASSASSINATED(task) checksfs/nfs/nfs4proc.c+0 -60 replies
13/18pnfs-submit: rewrite of layout state handling and cb_layoutrecallfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/client.c +8 more+518 -3150 replies
14/18pnfs-submit: increase number of outstanding CB_LAYOUTRECALLS we can handlefs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/pnfs.c +2 more+44 -260 replies
15/18pnfs-submit: roc add layoutreturn op to close compoundfs/nfs/nfs4proc.c fs/nfs/nfs4state.c fs/nfs/nfs4xdr.c +3 more+143 -460 replies
16/18pnfs-submit refactor layoutcommit xdr structuresfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +1 more+39 -510 replies
17/18pnfs-submit refactor pnfs_layoutcommit_setupfs/nfs/pnfs.c fs/nfs/pnfs.h+50 -570 replies
18/18pnfs_submit: roc add layoutcommit op to close compoundfs/nfs/nfs4xdr.c fs/nfs/pnfs.c include/linux/nfs_xdr.h+15 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] rewrite of CB_LAYOUTRECALL and layoutstate code

This code rewrites the layout state handling and the CB_LAYOUTRECALL paths. It applies to Benny's current pnfs-submit branch (commit eb04948a).

Patch 01 - A session's callback patch that passes the CB_SEQUENCE info (the session in particular) up to subsequent operations. Andy is looking at issues Trond pointed out with this patch, but something very much like it will come.

02-12 - These are what smallish changes I could pull out of the rewrite. Patch 03 in particular introduces changes to refcounting that are at the heart of io drain notification.

13 - Sorry this patch is so huge, but I am simultaneously changing the stateid and RPC processing for LAYOUTGET, LAYOUTRETURN, and CB_LAYOUTRECALL, and I did not see an easy way to split them bisectably.

14 - More CB_LAYOUTRECALL changes that could be more easily split out

15-18 Andy's code that puts LAYOUTCOMMIT and LAYOUTRETURN in the same compound as CLOSE

Fred