Commit 3660cd43 authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust

NFSv4 Remove zeroing state kern warnings

As of commit 5d422301 we no longer zero the
state.
Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 561ec160
...@@ -1375,8 +1375,8 @@ static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_ ...@@ -1375,8 +1375,8 @@ static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_
case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION: case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION:
goto out; goto out;
default: default:
printk(KERN_ERR "NFS: %s: unhandled error %d. " printk(KERN_ERR "NFS: %s: unhandled error %d\n",
"Zeroing state\n", __func__, status); __func__, status);
case -ENOMEM: case -ENOMEM:
case -NFS4ERR_DENIED: case -NFS4ERR_DENIED:
case -NFS4ERR_RECLAIM_BAD: case -NFS4ERR_RECLAIM_BAD:
...@@ -1439,15 +1439,12 @@ static int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs ...@@ -1439,15 +1439,12 @@ static int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs
} }
switch (status) { switch (status) {
default: default:
printk(KERN_ERR "NFS: %s: unhandled error %d. " printk(KERN_ERR "NFS: %s: unhandled error %d\n",
"Zeroing state\n", __func__, status); __func__, status);
case -ENOENT: case -ENOENT:
case -ENOMEM: case -ENOMEM:
case -ESTALE: case -ESTALE:
/* /* Open state on this file cannot be recovered */
* Open state on this file cannot be recovered
* All we can do is revert to using the zero stateid.
*/
nfs4_state_mark_recovery_failed(state, status); nfs4_state_mark_recovery_failed(state, status);
break; break;
case -EAGAIN: case -EAGAIN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment