summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorJ. Bruce Fields2011-01-03 04:13:18 +0100
committerJ. Bruce Fields2011-01-04 22:49:23 +0100
commitda165dd60e136d0609e0a2c0c2a9b9a5372200d6 (patch)
treee6cb7540b6233d447be9ff29cc6a20c357249b35 /fs/nfsd/vfs.c
parentnfsd: stop translating EAGAIN to nfserr_dropit (diff)
downloadkernel-qcow2-linux-da165dd60e136d0609e0a2c0c2a9b9a5372200d6.tar.gz
kernel-qcow2-linux-da165dd60e136d0609e0a2c0c2a9b9a5372200d6.tar.xz
kernel-qcow2-linux-da165dd60e136d0609e0a2c0c2a9b9a5372200d6.zip
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>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c4
1 files changed, 0 insertions, 4 deletions
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,
* 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;