From: Trond Myklebust Date: Sun, 20 Sep 2015 20:10:18 +0000 (-0400) Subject: NFSv4: Update the delay statistics counter for synchronous delays X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2598ed344586cf3612bfbd33041527c55543acfe;p=linux-beck.git NFSv4: Update the delay statistics counter for synchronous delays Currently, we only do so for asynchronous delays. Signed-off-by: Trond Myklebust --- 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;