]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
nfsd: remove some unnecessary dropit handling
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Jan 2011 03:13:18 +0000 (22:13 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Jan 2011 21:49:23 +0000 (16:49 -0500)
We no longer need a few of these special cases.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c
fs/nfsd/vfs.c

index f80c3997d24ce3ac0f7c3b32eade0d79074c9c40..fd6694b49e1caacf1d75d317800349d1328d4948 100644 (file)
@@ -1156,10 +1156,6 @@ encode_op:
 
                nfsd4_increment_op_stats(op->opnum);
        }
-       if (!rqstp->rq_usedeferral && status == nfserr_dropit) {
-               dprintk("%s Dropit - send NFS4ERR_DELAY\n", __func__);
-               status = nfserr_jukebox;
-       }
 
        resp->cstate.status = status;
        fh_put(&resp->cstate.current_fh);
index 73adcfb2dc17d527216503b5156175a01d1f0299..b82e36862044deaea20a22b19ada77a97599db0e 100644 (file)
@@ -2509,8 +2509,6 @@ static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file
        if (!fp->fi_fds[oflag]) {
                status = nfsd_open(rqstp, cur_fh, S_IFREG, access,
                        &fp->fi_fds[oflag]);
-               if (status == nfserr_dropit)
-                       status = nfserr_jukebox;
                if (status)
                        return status;
        }
index 437b4623cb02231720e27898e4a72523ebe7c948..364aae7d5998949e4eac31fd0046788e38e1326d 100644 (file)
@@ -2328,8 +2328,6 @@ nfsd4_encode_dirent(void *ccdv, const char *name, int namlen,
        case nfserr_resource:
                nfserr = nfserr_toosmall;
                goto fail;
-       case nfserr_dropit:
-               goto fail;
        case nfserr_noent:
                goto skip_entry;
        default:
index 184938fcff04d5dff712b8bee01f5d7e41bb20ad..6a3af2ff3afe245e150c7a231d3a9a32a00856c2 100644 (file)
@@ -380,8 +380,6 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
                 * we need to break all leases.
                 */
                host_err = break_lease(inode, O_WRONLY | O_NONBLOCK);
-               if (host_err == -EWOULDBLOCK)
-                       host_err = -ETIMEDOUT;
                if (host_err) /* ENOMEM or EWOULDBLOCK */
                        goto out_nfserr;
 
@@ -752,8 +750,6 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
         */
        if (!(access & NFSD_MAY_NOT_BREAK_LEASE))
                host_err = break_lease(inode, O_NONBLOCK | ((access & NFSD_MAY_WRITE) ? O_WRONLY : 0));
-       if (host_err == -EWOULDBLOCK)
-               host_err = -ETIMEDOUT;
        if (host_err) /* NOMEM or WOULDBLOCK */
                goto out_nfserr;