aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-01-02 22:13:18 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-01-04 16:49:23 -0500
commitda165dd60e136d0609e0a2c0c2a9b9a5372200d6 (patch)
treee6cb7540b6233d447be9ff29cc6a20c357249b35
parent062304a815fe10068c478a4a3f28cf091c55cb82 (diff)
nfsd: remove some unnecessary dropit handling
We no longer need a few of these special cases. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4proc.c4
-rw-r--r--fs/nfsd/nfs4state.c2
-rw-r--r--fs/nfsd/nfs4xdr.c2
-rw-r--r--fs/nfsd/vfs.c4
4 files changed, 0 insertions, 12 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index f80c3997d24c..fd6694b49e1c 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1156,10 +1156,6 @@ encode_op:
1156 1156
1157 nfsd4_increment_op_stats(op->opnum); 1157 nfsd4_increment_op_stats(op->opnum);
1158 } 1158 }
1159 if (!rqstp->rq_usedeferral && status == nfserr_dropit) {
1160 dprintk("%s Dropit - send NFS4ERR_DELAY\n", __func__);
1161 status = nfserr_jukebox;
1162 }
1163 1159
1164 resp->cstate.status = status; 1160 resp->cstate.status = status;
1165 fh_put(&resp->cstate.current_fh); 1161 fh_put(&resp->cstate.current_fh);
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 73adcfb2dc17..b82e36862044 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2509,8 +2509,6 @@ static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file
2509 if (!fp->fi_fds[oflag]) { 2509 if (!fp->fi_fds[oflag]) {
2510 status = nfsd_open(rqstp, cur_fh, S_IFREG, access, 2510 status = nfsd_open(rqstp, cur_fh, S_IFREG, access,
2511 &fp->fi_fds[oflag]); 2511 &fp->fi_fds[oflag]);
2512 if (status == nfserr_dropit)
2513 status = nfserr_jukebox;
2514 if (status) 2512 if (status)
2515 return status; 2513 return status;
2516 } 2514 }
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 437b4623cb02..364aae7d5998 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -2328,8 +2328,6 @@ nfsd4_encode_dirent(void *ccdv, const char *name, int namlen,
2328 case nfserr_resource: 2328 case nfserr_resource:
2329 nfserr = nfserr_toosmall; 2329 nfserr = nfserr_toosmall;
2330 goto fail; 2330 goto fail;
2331 case nfserr_dropit:
2332 goto fail;
2333 case nfserr_noent: 2331 case nfserr_noent:
2334 goto skip_entry; 2332 goto skip_entry;
2335 default: 2333 default:
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 184938fcff04..6a3af2ff3afe 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -380,8 +380,6 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
380 * we need to break all leases. 380 * we need to break all leases.
381 */ 381 */
382 host_err = break_lease(inode, O_WRONLY | O_NONBLOCK); 382 host_err = break_lease(inode, O_WRONLY | O_NONBLOCK);
383 if (host_err == -EWOULDBLOCK)
384 host_err = -ETIMEDOUT;
385 if (host_err) /* ENOMEM or EWOULDBLOCK */ 383 if (host_err) /* ENOMEM or EWOULDBLOCK */
386 goto out_nfserr; 384 goto out_nfserr;
387 385
@@ -752,8 +750,6 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
752 */ 750 */
753 if (!(access & NFSD_MAY_NOT_BREAK_LEASE)) 751 if (!(access & NFSD_MAY_NOT_BREAK_LEASE))
754 host_err = break_lease(inode, O_NONBLOCK | ((access & NFSD_MAY_WRITE) ? O_WRONLY : 0)); 752 host_err = break_lease(inode, O_NONBLOCK | ((access & NFSD_MAY_WRITE) ? O_WRONLY : 0));
755 if (host_err == -EWOULDBLOCK)
756 host_err = -ETIMEDOUT;
757 if (host_err) /* NOMEM or WOULDBLOCK */ 753 if (host_err) /* NOMEM or WOULDBLOCK */
758 goto out_nfserr; 754 goto out_nfserr;
759 755