diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-08 16:49:11 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:42 -0400 |
commit | 6f43ddccb31b5bd2297878f6f3735d45fd4dfce3 (patch) | |
tree | 2b21ec002ca6868df0d7d39a1044fff5ff97df87 /fs/nfs/nfs4state.c | |
parent | 003707c7225dbd4bf879b6c204743554de0a08d6 (diff) | |
download | blackbird-op-linux-6f43ddccb31b5bd2297878f6f3735d45fd4dfce3.tar.gz blackbird-op-linux-6f43ddccb31b5bd2297878f6f3735d45fd4dfce3.zip |
NFSv4: Improve the debugging of bad sequence id errors...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 4f78c0d1eab5..4fa4054cdf34 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -38,6 +38,7 @@ * subsequent patch. */ +#include <linux/kernel.h> #include <linux/slab.h> #include <linux/smp_lock.h> #include <linux/nfs_fs.h> @@ -648,6 +649,12 @@ static void nfs_increment_seqid(int status, struct nfs_seqid *seqid) case 0: break; case -NFS4ERR_BAD_SEQID: + if (seqid->sequence->flags & NFS_SEQID_CONFIRMED) + return; + printk(KERN_WARNING "NFS: v4 server returned a bad" + "sequence-id error on an" + "unconfirmed sequence %p!\n", + seqid->sequence); case -NFS4ERR_STALE_CLIENTID: case -NFS4ERR_STALE_STATEID: case -NFS4ERR_BAD_STATEID: |