Skip to content

pnfs-submit add layoutget,layoutreturn error handling version 2

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10SQUASHME: pnfs-submit remove unused filelayout_mount_typefs/nfs/nfs4filelayout.h+0 -60 replies
2/10SQUASHME pnfs-submit: pnfs_try_to_read, write, commit using freed memoryfs/nfs/pnfs.h+6 -30 replies
3/10SQUASHME pnfs-submit: clear page lseg on partial i/ofs/nfs/pnfs.h+12 -40 replies
4/10SQUASHME pnfs-submit: remove encode_layoutreturnfs/nfs/nfs4xdr.c include/linux/nfs4_pnfs.h+2 -170 replies
5/10SQUASHME pnfs-submit: add error handling to layout returnfs/nfs/nfs4proc.c+27 -100 replies
6/10SQUASHME pnfs-submit: handle assassinated layoutcommitfs/nfs/nfs4proc.c+2 -00 replies
7/10SQUASHME pnfs-submit: add error handlers to layout getfs/nfs/nfs4proc.c+29 -162 replies
8/10pnfs-post-submit: restore encode_layoutreturnfs/nfs/nfs4xdr.c include/linux/nfs4_pnfs.h+16 -20 replies
9/10SQUASHME: pnfs-submit: don't re-initialize i_lockfs/nfs/inode.c+0 -10 replies
10/10SQUASHME pnfs-submit: remove struct nfs_server from stackfs/nfs/nfs4filelayoutdev.c+12 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/10] pnfs-submit add layoutget,layoutreturn error handling version 2

Responded to comments, added a 2 cleanup patchses

Plus some code cleanup 0001-SQUASHME-pnfs-submit-remove-unused-filelayout_mount_.patch

and some bug fixes 0002-SQUASHME-pnfs-submit-pnfs_try_to_read-write-commit-u.patch

NOTE: this patch: 0003-SQUASHME-pnfs-submit-tell-commit-to-use-the-MDS.patch was replaced by:
0003-SQUASHME-pnfs-submit-clear-page-lseg-on-partial-i-o.patch

Remove unused (by file layout) encode_layoutreturn io operation 0004-SQUASHME-pnfs-submit-remove-encode_layoutreturn.patch 0005-SQUASHME-pnfs-submit-add-error-handling-to-layout-re.patch

0006-SQUASHME-pnfs-submit-handle-assassinated-layoutcommi.patch

Note: pnfs4_proc_layoutget is only called by send_layout() which prints the status. 0007-SQUASHME-pnfs-submit-add-error-handlers-to-layout-ge.patch

Add back encode_layoutreturn io operation 0008-pnfs-post-submit-restore-encode_layoutreturn.patch

New patches:
0009-SQUASHME-pnfs-submit-don-t-re-initialize-i_lock.patch

This gets rid of a frame stack warning; 0010-SQUASHME-pnfs-submit-remove-struct-nfs_server-from-s.patch

Testing:
---------

CONFIG_NFS_V4_1 set: NFSv4.0 NFSv4.1 pNFS
Passes Connectathon tests

Tested layoutget and layoutreturn recovery from NFS4ERR_DEAD_SESSION with the pyNFS server and the testclient framework.

Still todo:

Recover from NFS4ERR_BAD_STATEID. Currently layoutreturn, layoutget, and layoutcommit do not pass nfs_stste to the error handlers.

Handle NFS4ERR_BAD_LAYOUT.

CONFIG_NFS_V4_1 not set: NFSv4.o mount passes cthon tests.

-->Andy