aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2019-07-18 09:32:17 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-07-18 15:50:28 -0400
commitd5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e (patch)
treee81e74971e58837a9986c48cf38a2e6160a0265c /fs/nfs/pnfs.c
parentpnfs: Fix a problem where we gratuitously start doing I/O through the MDS (diff)
downloadlinux-dev-d5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e.tar.xz
linux-dev-d5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e.zip
pnfs/flexfiles: Add tracepoints for detecting pnfs fallback to MDS
Add tracepoints to allow debugging of the event chain leading to a pnfs fallback to doing I/O through the MDS. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 758917463700..75bd5b552ba4 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -2037,6 +2037,8 @@ lookup_again:
out_put_layout_hdr:
if (first)
pnfs_clear_first_layoutget(lo);
+ trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg,
+ PNFS_UPDATE_LAYOUT_EXIT);
pnfs_put_layout_hdr(lo);
out:
dprintk("%s: inode %s/%llu pNFS layout segment %s for "