Skip to content

pnfs-submit: cleanup layoutcommit verison 2

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SQUASHME pnfs-submit: cleanup layoutcommit callfs/nfs/pnfs.c+3 -90 replies
2/4SQUASHME pnfs-submit: handle async layoutcommit errorsfs/nfs/nfs4proc.c+3 -00 replies
3/4SQUASHME pnfs remove ifdef around layoutcommit_neededfs/nfs/inode.c include/linux/nfs4_pnfs.h+8 -20 replies
4/4SQUASHME pnfs-submit: move layoutcommit to nfs_write_inodefs/nfs/nfs4state.c fs/nfs/pnfs.h fs/nfs/write.c+16 -141 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] pnfs-submit: cleanup layoutcommit verison 2

Responded to comments.

This is against the pnfs-submit branch of the 2.6.34 tree. They will need to be applied against the 2.6.35-rc1 tree which I can do after comments.

A cleanup, and call the async error handler. 0001-SQUASHME-pnfs-submit-cleanup-layoutcommit-call.patch 0002-SQUASHME-pnfs-submit-handle-async-layoutcommit-erro.patch

These next two patches moves the pnfs_layoutcommit_inode call to nfs_write_inode, and it is the only call other than in layoutreturn. (removed calls in __nfs4_close, nfs_commit_inode, nfs_wb_sync).

0003-SQUASHME-pnfs-remove-ifdef-around-layoutcommit_neede.patch 0004-SQUASHME-pnfs-submit-move-layoutcommit-to-nfs_write.patch

pnfs_layoutcommit_inode is called after nfs_commit_unstable_pages() so that if LAYOUTCOMMIT fails, the unstable pages have been processed..

The error handlers (sync and async) call nfs4_map_errors, so unhandled errors (such as NFS4ERR_BADLAYOUT) get returned to nfs_write_ioode as -EIO.

We will add code to the error handlers for errors such as NFS4ERR_BADLAYOUT that require us to stop using and free the layout, and redo the I/O through the MDS.

Testing:
With CONFIG_NFS_V4_1 set
NFSv4.1/pnfs passed Connectathon against write enabled GFS2/pNFS. Note: there were exactly the same number of LAYOUTCOMMITS sent as were sent with pnfs_layoutcommit_inode being called from __nfs4_close (never happened), nfs_commit_inode and nfs_wb_sync.

V4.0 mount passes Connectathon tests

With CONFIG_NFS_V4_1 not set

V4.0 mount passes Connectathon tests

-->Andy