Skip to content

Wave3: For pNFS team review, not for kernel submission

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest40 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/40pnfs-submit: wave3: lseg refcountingfs/nfs/pnfs.c fs/nfs/pnfs.h+48 -100 replies
2/40pnfs_submit: add data server session to nfs4_setup_sequencefs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c fs/nfs/read.c +2 more+17 -110 replies
3/40pnfs_submit: update nfs4_async_handle_error for data serverfs/nfs/nfs4proc.c include/linux/nfs4.h include/linux/nfs_fs_sb.h+38 -160 replies
4/40pnfs_submit: update state renewal for data serversfs/nfs/nfs4renewd.c fs/nfs/nfs4state.c+6 -10 replies
5/40pnfs_submit: wave3 pageio-helpersfs/nfs/pagelist.c fs/nfs/pnfs.c fs/nfs/pnfs.h +2 more+70 -40 replies
6/40pnfs_submit: wave3 associate layout segment with nfs_pagefs/nfs/file.c fs/nfs/pagelist.c fs/nfs/pnfs.c +4 more+36 -130 replies
7/40pnfs_submit: filelayout policy operationsfs/nfs/nfs4filelayout.c+28 -00 replies
8/40pnfs_submit: filelayout i/o helpersfs/nfs/client.c fs/nfs/internal.h fs/nfs/nfs4filelayout.c +3 more+236 -60 replies
9/40pnfs_submit: wave3 generic readfs/nfs/internal.h fs/nfs/nfs4proc.c fs/nfs/pnfs.c +4 more+161 -300 replies
10/40pnfs_submit: filelayout readfs/nfs/nfs4filelayout.c+88 -00 replies
11/40pnfs_submit: increase NFS_MAX_FILE_IO_SIZEinclude/linux/nfs_xdr.h+1 -10 replies
12/40pnfs_submit: enforce requested DS only pNFS rolefs/nfs/nfs4filelayoutdev.c fs/nfs/nfs4state.c+11 -50 replies
13/40REVERT pnfs_submit-add-data-server-session-to-nfs4_setup_s.patchfs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c fs/nfs/read.c +2 more+11 -170 replies
14/40REVERT: pnfs_submit: update nfs4_async_handle_error for data serverfs/nfs/nfs4proc.c+15 -210 replies
15/40REVERT pnfs_submit: increase NFS_MAX_FILE_IO_SIZEinclude/linux/nfs_xdr.h+1 -10 replies
16/40REVERT pnfs_submit: enforce requested DS only pNFS rolefs/nfs/nfs4state.c+0 -110 replies
17/40SQUASHME pnfs-submit wave3 remove is_ds_only_sessionfs/nfs/nfs4_fs.h include/linux/nfs4.h include/linux/nfs_fs_sb.h+13 -170 replies
18/40SQUASHME pnfs-submit: wave3 make pnfs_initiate_read staticfs/nfs/internal.h fs/nfs/read.c+1 -30 replies
19/40SQUASHME pnfs-submit wave3 filelayout read pagelist cleanupfs/nfs/nfs4filelayout.c+2 -172 replies
20/40SQUASHME pnfs-submit wave3 remove nr_pages from read_pagelistfs/nfs/nfs4filelayout.c fs/nfs/pnfs.c fs/nfs/pnfs.h+3 -40 replies
21/40SQUASHME pnfs-submit wave3 add comment to nfs4_fl_prepare_ds_fhfs/nfs/nfs4filelayoutdev.c+1 -00 replies
22/40SQUASHME pnfs-submit wave3 move BUG outside of switchfs/nfs/nfs4filelayout.c+1 -40 replies
23/40SQUASHME pnfs-submit wave3 new function for ds expired leasefs/nfs/nfs4proc.c+8 -35 replies
24/40NFS move nfs_client initialization into nfs_get_clientfs/nfs/client.c+46 -200 replies
25/40pnfs-submit: wave3 refactor dataserver client setupfs/nfs/client.c fs/nfs/internal.h fs/nfs/nfs4filelayoutdev.c+68 -690 replies
26/40pnfs-submit: wave3 refactor data server session initializationfs/nfs/internal.h fs/nfs/nfs4_fs.h fs/nfs/nfs4filelayoutdev.c +1 more+45 -210 replies
27/40pnfs_submit: wave3 rename nfs4_pnfs_ds_createfs/nfs/nfs4filelayoutdev.c+3 -30 replies
28/40pnfs-submit: wave3 turn off pNFS on ds connection failurefs/nfs/nfs4filelayout.c fs/nfs/nfs4filelayout.h fs/nfs/nfs4filelayoutdev.c +2 more+54 -160 replies
29/40pnfs-submit: wave3 rewrite read lseg refcountingfs/nfs/nfs4filelayout.c fs/nfs/pagelist.c fs/nfs/pnfs.c +5 more+62 -1010 replies
30/40pnfs-submit: wave3 let LAYOUTGET distinguish between read and write callsfs/nfs/pagelist.c fs/nfs/write.c include/linux/nfs_page.h+7 -72 replies
31/40pnfs_submit wave3 remove struct pnfs_fl_call_datafs/nfs/nfs4filelayout.c fs/nfs/nfs4proc.c fs/nfs/read.c +1 more+16 -270 replies
32/40pnfs_submit: wave3 get rid of pnfs_call_datafs/nfs/nfs4filelayout.c fs/nfs/pnfs.c include/linux/nfs_xdr.h+4 -140 replies
33/40pnfs-submit wave3 remove CONFIG_NFS_V4 and V4_1 from nfs_read_datainclude/linux/nfs_xdr.h+4 -82 replies
34/40pnfs-submit wave3 don't use nfs_read_prepare for DSfs/nfs/read.c+0 -60 replies
35/40pnfs_submit wave3 filelayout_read_preparefs/nfs/nfs4_fs.h fs/nfs/nfs4filelayout.c fs/nfs/nfs4proc.c+18 -20 replies
36/40pnfs-submit wave3 filelayout read donefs/nfs/internal.h fs/nfs/nfs4filelayout.c fs/nfs/nfs4proc.c +5 more+125 -182 replies
37/40pnfs-submit wave3 send zero stateid seqid on v4.1 i/ofs/nfs/nfs4xdr.c+7 -32 replies
38/40pnfs-submit wave3 new flag for state renewal checkfs/nfs/client.c fs/nfs/nfs4renewd.c include/linux/nfs_fs_sb.h+7 -50 replies
39/40pnfs-submit wave3 new flag for lease time checkfs/nfs/client.c fs/nfs/nfs4filelayoutdev.c fs/nfs/nfs4state.c +1 more+13 -30 replies
40/40pnfs-submit wave3 add MDS mount DS only checkfs/nfs/client.c+6 -00 replies

Reviews trailers per patch

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

PatchGuo MingyangAndy Adamson
1/40
2/40
3/40
4/40
5/40
6/40
7/40
8/40
9/40
10/40T-b
11/40
12/40
13/40
14/40
15/40
16/40
17/40
18/40
19/40
20/40
21/40
22/40
23/40
24/40
25/40
26/40
27/40
28/40
29/40A-b
30/40
31/40
32/40
33/40
34/40
35/40
36/40
37/40
38/40
39/40
40/40

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 0/40] Wave3: For pNFS team review, not for kernel submission

The wave3 code addresses pNFS file layout data server connection, data server READ I/O and recovery of failed data server READs through the MDS.

I did not see the pnfs-submit-wave3 branch on benny's tree, so I created my own for the meantime.
I cloned the nfsd41-all from git://linux-nfs.org/~bhalevy/linux-pnfs.git
which is the base for the pnfs-submit branch.
I then applied the wave3 patches from benny's pnfs-submit branch, and then the changes.

git://linux-nfs.org/projects/andros/benny-linux-pnfs.git
branch andros-pnfs-submit-wave3 contains the result.

========================================================================
Please review the changes - I want to submit to Trond/Christoph next week.
========================================================================

These patches are in the first 12 in the pnfs-submit tree and are the original "wave3" patches.

0001-pnfs-submit-wave3-lseg-refcounting.patch 0002-pnfs_submit-add-data-server-session-to-nfs4_setup_se.patch 0003-pnfs_submit-update-nfs4_async_handle_error-for-data-.patch 0004-pnfs_submit-update-state-renewal-for-data-servers.patch 0005-pnfs_submit-wave3-pageio-helpers.patch 0006-pnfs_submit-wave3-associate-layout-segment-with-nfs_.patch 0007-pnfs_submit-filelayout-policy-operations.patch 0008-pnfs_submit-filelayout-i-o-helpers.patch 0009-pnfs_submit-wave3-generic-read.patch 0010-pnfs_submit-filelayout-read.patch 0011-pnfs_submit-increase-NFS_MAX_FILE_IO_SIZE.patch 0012-pnfs_submit-enforce-requested-DS-only-pNFS-role.patch

The rest are the wave3 changes.

Summary of changes;
-------------------

1) The file layoutdriver now specifies it's own rpc_call_prepare and rpc_call_done callbacks for READ.

filelayout_read_prepare:
- Uses nfs41_setup_sequence so we do not need to change nfs4_setup_sequence().

filelayout_read_done
- Add a read_done_cb function to nfs_read_data that calls nfs_read_done_cb for
NFS READs and filelayout_read_done_cb for data server READs.
- filelayout_read_done_cb has its own async error handler so we do not need to change nfs4_async_handle_error()

2) DS/MDS dual role now allows for sessions used as a data server to be reused as an MDS or NFSv41 mount.
- We don't ask for the DS role on data server EXCHANGE_ID
- We don't strip any roles returned by the server.
- If a session is in use as a DS role, and the client subsequently mounts the same server as either an MDS or NON_PNFS mount, the same session can be used provided the existing exchange flags allow it.

3) We always send a zero READ/WRITE stateid seqid. This is required for data servers, and there is no advantage to not doing it for MDS or NON_PNFS mounts.

4) We mark the deviceid as invalid upon any data server connection failure and print out a kernel message.
This in turn marks any layout that tries to use the devicid as failed for both IOMODE_READ and IOMODE_RW. Inodes without layouts will still send a layoutget. If the resultant layout uses the marked deviceid, it will be marked as failed for both iomodes. All I/O will go through the MDS until a client reboot or a CB_LAYOUTRECALL ALL or FSID removes all layouts that refer to the deviceid, which removes the deviceid.

5) Our new file layout async error handler only recovers from session related errors, or grace/delay errors. All other errors including NFS4ERR_EXPIRED or NFS4ERR_STALE_CLIENTID result in marking the layout as failed for IOMODE_READ and I/O is retried through the MDS.

6) Fred's lock inversion patches, and the request by Trond to not reference a layout segment on dirty pages held in the cache changed the layout segment reference counting.

There are a couple of small issues I'm still investigating. Trond and Fred have done an initial review.

-->Andy