nfs: add new tracepoint for pnfs_update_layout
authorJeff Layton <jlayton@poochiereds.net>
Thu, 10 Dec 2015 15:41:58 +0000 (10:41 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 14:57:14 +0000 (09:57 -0500)
commit9a4bf31d05a801e2358d96f69b39fb8ce2c69dd8
treec132b620128e2035a56baa9b3314d0aaf909647b
parent9759b0fb1d202e6bc9bdab10612189abc9389df8
nfs: add new tracepoint for pnfs_update_layout

pnfs_update_layout is really the "nexus" of layout handling. If it
returns NULL then we end up going through the MDS. This patch adds
some tracepoints to that function that allow us to determine the
cause when we end up going through the MDS unexpectedly.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4trace.h
fs/nfs/pnfs.c
include/linux/nfs4.h