summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-09-20 16:10:18 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-10-08 10:45:51 -0400
commit2598ed344586cf3612bfbd33041527c55543acfe (patch)
tree1dfe3f4c487bc647a84c1df4343a8a6a55079043 /fs/nfs
parentb3c2aa07454cf7ab4ec3ee882c586abbea033132 (diff)
downloadlinux-2598ed344586cf3612bfbd33041527c55543acfe.tar.gz
linux-2598ed344586cf3612bfbd33041527c55543acfe.tar.bz2
linux-2598ed344586cf3612bfbd33041527c55543acfe.zip
NFSv4: Update the delay statistics counter for synchronous delays
Currently, we only do so for asynchronous delays. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index d5c2a461f281..d044c7b11ff7 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -412,8 +412,9 @@ static int nfs4_do_handle_exception(struct nfs_server *server,
ret = -EBUSY;
break;
}
- case -NFS4ERR_GRACE:
case -NFS4ERR_DELAY:
+ nfs_inc_server_stats(server, NFSIOS_DELAY);
+ case -NFS4ERR_GRACE:
exception->delay = 1;
return 0;