Skip to content

pnfs/flexfiles: layoutstats support

Peng Tao linux-nfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v111 patches 4 repliesSuperseded

Changes in v2 from the cover letter

1. don't reset IO statistics upon LAYOUTSTATS reply per latest NFS42 draft.
2. update flexfiles xdr to match latetst flexfiles draft.
3. address Jeff's comments and add his reviewed-by line.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10NFSv.2/pnfs Add a LAYOUTSTATS rpc functionfs/nfs/nfs42.h fs/nfs/nfs42proc.c fs/nfs/nfs42xdr.c +5 more+205 -30 replies
2/10pNFS: fill in nfs42_layoutstat_opsfs/nfs/nfs42proc.c+47 -00 replies
3/10pnfs: add pnfs_report_layoutstat helper functionfs/nfs/nfs42proc.c fs/nfs/pnfs.c fs/nfs/pnfs.h+56 -00 replies
4/10pNFS/flexfiles: Remove unused struct members user_name, group_namefs/nfs/flexfilelayout/flexfilelayout.h+0 -20 replies
5/10pNFS/flexfiles: add layoutstats trackingfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h+202 -110 replies
6/10pNFS/flexfiles: track when layout is first usedfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h+8 -30 replies
7/10pnfs/flexfiles: add ff_layout_prepare_layoutstatsfs/nfs/flexfilelayout/flexfilelayout.c+71 -00 replies
8/10pnfs/flexfiles: encode LAYOUTSTATS flexfiles specific datafs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h+177 -20 replies
9/10nfs42: serialize LAYOUTSTATS calls of the same filefs/nfs/nfs42proc.c fs/nfs/pnfs.c include/linux/nfs_fs.h+11 -00 replies
10/10pnfs/flexfiles: report layoutstat regularlyfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h+28 -50 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJeff Layton
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH-v2 00/10] pnfs/flexfiles: layoutstats support

Hi all,

The patchsets add LAYOUTSTATS support to flexfiles. LAYOUTSTATS are sent every minute if IO is still happening upon a file.

One limitation is that at most 4 LAYOUTSTATS calls are permitted in a compound. Had to send multiple LAYOUTSTATS operations per compound because OP_LAYOUTSTATS requires stateid and deviceid as its arguments, which makes it a per-file per-deviceid call.

Cheers,
Tao

v1->v2 Changelog:
1. don't reset IO statistics upon LAYOUTSTATS reply per latest NFS42 draft.
2. update flexfiles xdr to match latetst flexfiles draft.
3. address Jeff's comments and add his reviewed-by line.

Peng Tao (7):
pNFS: fill in nfs42_layoutstat_ops
pnfs: add pnfs_report_layoutstat helper function pNFS/flexfiles: track when layout is first used pnfs/flexfiles: add ff_layout_prepare_layoutstats pnfs/flexfiles: encode LAYOUTSTATS flexfiles specific data
nfs42: serialize LAYOUTSTATS calls of the same file pnfs/flexfiles: report layoutstat regularly

Trond Myklebust (3):
NFSv.2/pnfs Add a LAYOUTSTATS rpc function pNFS/flexfiles: Remove unused struct members user_name, group_name pNFS/flexfiles: add layoutstats tracking

 fs/nfs/flexfilelayout/flexfilelayout.c | 459 ++++++++++++++++++++++++++++++++-
 fs/nfs/flexfilelayout/flexfilelayout.h |  30 ++-
 fs/nfs/nfs42.h                         |   9 +-
 fs/nfs/nfs42proc.c                     |  81 ++++++
 fs/nfs/nfs42xdr.c                      | 122 +++++++++
 fs/nfs/nfs4_fs.h                       |   1 +
 fs/nfs/nfs4proc.c                      |   4 +-
 fs/nfs/nfs4xdr.c                       |   1 +
 fs/nfs/pnfs.c                          |  56 ++++
 fs/nfs/pnfs.h                          |   3 +
 include/linux/nfs4.h                   |   1 +
 include/linux/nfs_fs.h                 |   1 +
 include/linux/nfs_xdr.h                |  43 +++
 13 files changed, 795 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.1