Skip to content

rewrite of CB_LAYOUTRECALL and layoutstate code, try 2

Fred Isaman linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22pnfs-submit: remove RPC_ASSASSINATED(task) checksfs/nfs/nfs4proc.c+0 -60 replies
2/22pnfs-submit: remove unnecessary field lgp->statusfs/nfs/nfs4proc.c include/linux/nfs_xdr.h+1 -30 replies
3/22pnfs-submit: layoutreturn's rpc_call_op functions need to handle bulk returnsfs/nfs/callback_proc.c fs/nfs/nfs4proc.c fs/nfs/pnfs.c +1 more+23 -200 replies
4/22pnfs-submit: argument to should_free_lseg changed from lseg to rangefs/nfs/pnfs.c+7 -70 replies
5/22pnfs-submit: change layout state seqlock to a spinlockfs/nfs/callback_proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +1 more+26 -420 replies
6/22NFSv4.1: Callback share session between opsfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c+113 -780 replies
7/22SQUASHME: pnfs-submit: fixups for nfsv4.1 callbacksfs/nfs/callback_proc.c+23 -290 replies
8/22SQUASHME: allow cb_sequence changes to compile without v4.1fs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +1 more+31 -82 replies
9/22pnfs-submit: change pnfs_layout_segment refcounting from kref to atomic_tfs/nfs/pnfs.c fs/nfs/pnfs.h+17 -250 replies
10/22pnfs-submit: Have LAYOUTGETS wait when lo->plh_block_lgets is setfs/nfs/inode.c fs/nfs/nfs4proc.c fs/nfs/pnfs.c +2 more+22 -180 replies
11/22pnfs-submit: remove _pnfs_can_return_lseg call from pnfs_clear_lseg_listfs/nfs/pnfs.c+80 -500 replies
12/22pnfs_submit: nfs4_layoutreturn_release should not reference resultsfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +2 more+26 -290 replies
13/22pnfs-submit: reorganize struct cb_layoutrecallargsfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c+28 -210 replies
14/22pnfs-submit: rename lo->state to lo->plh_flagsfs/nfs/pnfs.c fs/nfs/pnfs.h+12 -120 replies
15/22pnfs-submit: change pnfs_layout_hdr refcount to atomic_tfs/nfs/pnfs.c fs/nfs/pnfs.h+30 -220 replies
16/22pnfs-submit: rewrite of layout state handling and cb_layoutrecallfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/client.c +6 more+497 -30213 replies
17/22pnfs-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
18/22pnfs-submit: roc add layoutreturn op to close compoundfs/nfs/nfs4proc.c fs/nfs/nfs4state.c fs/nfs/nfs4xdr.c +3 more+143 -468 replies
19/22pnfs-submit refactor layoutcommit xdr structuresfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +1 more+39 -510 replies
20/22pnfs-submit refactor pnfs_layoutcommit_setupfs/nfs/pnfs.c fs/nfs/pnfs.h+51 -580 replies
21/22pnfs_submit: roc add layoutcommit op to close compoundfs/nfs/nfs4xdr.c fs/nfs/pnfs.c include/linux/nfs_xdr.h+19 -30 replies
22/22SQUASHME: make roc patches compile without v4.1fs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.h+79 -340 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/22] rewrite of CB_LAYOUTRECALL and layoutstate code, try 2

This is version 2 of code that rewrites the layout state handling and the CB_LAYOUTRECALL paths, incorporating suggestions from Benny, as well as some compile fixes for the non-v4.1 case, and reordering the patches to put the simpler, less intrusive changes first.

I'm not entirely happy with the non-v4.1 compile fixes I added, but they are a starting point.

It applies to Benny's current pnfs-submit branch (commit eb04948a).

patches 01-05 are straightforward tweaking preparing for the bigger changes

patches 06-08 modify CB_COMPUND processing to pass the CB_SEQUENCE info (the session in particular) up to subsequent operations.

patches 09-15 are more substantial changes affecting refcounting and blocking.

patches 16-17 are the point of it all, the rewrite of the stateid and race handling for LAYOUTGET, LAYOUTRETURN, and CB_LAYOUTRECALL

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

Fred