Skip to content

RFC NFSv4/flexfiles: Add support for striped layouts

Jonathan Curley linux-nfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 RFC Latest9 patches 4 repliesIn review
  2. v3 RFC9 patches 1 replySuperseded
  3. v2 RFC9 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC9 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Use regular division operators for u32 commit path math.
- Fix mirror null check in ff_rw_layout_has_available_ds.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9NFSv4/flexfiles: Remove cred local variable dependencyfs/nfs/flexfilelayout/flexfilelayout.c+2 -20 replies
2/9NFSv4/flexfiles: Use ds_commit_idx when marking a write commitfs/nfs/write.c+1 -10 replies
3/9NFSv4/flexfiles: Add data structure support for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h fs/nfs/flexfilelayout/flexfilelayoutdev.c+117 -980 replies
4/9NFSv4/flexfiles: Update low level helper functions to be DS stripe aware.fs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h fs/nfs/flexfilelayout/flexfilelayoutdev.c+115 -850 replies
5/9NFSv4/flexfiles: Read path updates for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c+98 -240 replies
6/9NFSv4/flexfiles: Commit path updates for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c+25 -160 replies
7/9NFSv4/flexfiles: Write path updates for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c+30 -120 replies
8/9NFSv4/flexfiles: Update layout stats & error paths for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c+209 -1030 replies
9/9NFSv4/flexfiles: Add support for striped layoutsfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h+157 -920 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [RFC PATCH v4 0/9] NFSv4/flexfiles: Add support for striped layouts

This patch series introduces support for striped layouts:

The first 2 patches are simple preparation changes. There should be no logical impact to the code.

The 3rd patch refactors the nfs4_ff_layout_mirror struct to have an array of a new nfs4_ff_layout_ds_stripe type. The nfs4_ff_layout_ds_stripe has all the contents of ff_data_server4 per the flexfile rfc. I called it ds_stripe because ds was already taken by the deviceid side of the code.

The patches 4-8 update various paths to be dss_id aware. Most of this consists of either adding a new parameter to the function or adding a loop. Depending on which is appropriate.

The final patch 9 updates the layout creation path to populate the array and turns the feature on.

v1:
- Fixes function parameter 'dss_id' not described in 'nfs4_ff_layout_prepare_ds'

v2:
- Fixes layout stat error reporting path for commit to properly calculate dss_id.

v3:
- Fixes do_div dividend to be u64.

v4:
- Use regular division operators for u32 commit path math.
- Fix mirror null check in ff_rw_layout_has_available_ds.

Jonathan Curley (9):
NFSv4/flexfiles: Remove cred local variable dependency NFSv4/flexfiles: Use ds_commit_idx when marking a write commit NFSv4/flexfiles: Add data structure support for striped layouts NFSv4/flexfiles: Update low level helper functions to be DS stripe
aware.
NFSv4/flexfiles: Read path updates for striped layouts NFSv4/flexfiles: Commit path updates for striped layouts NFSv4/flexfiles: Write path updates for striped layouts NFSv4/flexfiles: Update layout stats & error paths for striped layouts NFSv4/flexfiles: Add support for striped layouts

 fs/nfs/flexfilelayout/flexfilelayout.c    | 778 +++++++++++++++-------
 fs/nfs/flexfilelayout/flexfilelayout.h    |  64 +-
 fs/nfs/flexfilelayout/flexfilelayoutdev.c | 105 +--
 fs/nfs/write.c                            |   2 +-
 4 files changed, 635 insertions(+), 314 deletions(-)
Signature · 1 line
2.34.1