]> git.karo-electronics.de Git - linux-beck.git/commitdiff
NFSv4: Update the delay statistics counter for synchronous delays
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 20 Sep 2015 20:10:18 +0000 (16:10 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 8 Oct 2015 14:45:51 +0000 (10:45 -0400)
Currently, we only do so for asynchronous delays.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c

index d5c2a461f28185485e640358663b862c5670b71b..d044c7b11ff71dba8e5049363e60ce3325e4876e 100644 (file)
@@ -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;