Skip to content

Reduce direct access of nfsd to inode->i_mtime

Amir Goldstein linux-fsdevel linux-unionfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 11 repliesIn review

Changes in v2 from the cover letter

- Use stat->mtime times instead of inode->i_mtime where relevant, so overlayfs doesn't need to be special cased

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsd: encode stat->mtime for getattr instead of inode->i_mtimefs/locks.c fs/nfsd/nfsxdr.c+3 -41 reply
2/2nfsd: store stat times in fill_pre_wcc() instead of inode timesfs/nfsd/nfs3xdr.c fs/nfsd/nfs4xdr.c fs/nfsd/nfsfh.h+37 -2410 replies

Reviews trailers per patch

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

PatchJeff Layton
1/2R-b
2/2

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 0/2] Reduce direct access of nfsd to inode->i_mtime

Bruce, Jeff,

These patches fix issues I found when running nfstest_posix over NFS exported overlayfs. The issues stem from the fact that the overlay inode i_mtime is often out of date w.r.t stat->mtime.

I am posting these separately from (soon to be posted) overlayfs NFS export support patches to get your ACK, or, since those changes are independent from overlayfs, you could carry them through your tree.

Please note that this does not eliminate all direct access of nfsd to inode->i_mtime, but only the low hanging access sites, which also happen to be the cases that matter to overlayfs.

Changes since v1 (RFC):
- Use stat->mtime times instead of inode->i_mtime where relevant, so overlayfs doesn't need to be special cased

Thanks,
Amir.

Amir Goldstein (2):
nfsd: encode stat->mtime for getattr instead of inode->i_mtime
nfsd: store stat times in fill_pre_wcc() instead of inode times

 fs/locks.c        |  6 ++----
 fs/nfsd/nfs3xdr.c | 31 ++++++++++++++++++++++++++++++-
 fs/nfsd/nfs4xdr.c |  2 +-
 fs/nfsd/nfsfh.h   | 28 ++++++----------------------
 fs/nfsd/nfsxdr.c  |  1 +
 5 files changed, 40 insertions(+), 28 deletions(-)
Signature · 1 line
2.7.4