summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svc4proc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-10-17 09:36:29 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-11-18 20:23:04 -0500
commita872c7313ec55263e11026163f081069a8c896c6 (patch)
tree497c08c472afa51d9a38c37fe6df3f140a3ba8c9 /fs/lockd/svc4proc.c
parente5948841285b1ad5bc3234a2f6d0586eceabfbdc (diff)
downloadlinux-a872c7313ec55263e11026163f081069a8c896c6.tar.gz
linux-a872c7313ec55263e11026163f081069a8c896c6.tar.bz2
linux-a872c7313ec55263e11026163f081069a8c896c6.zip
lockd: Remove some snippets of unfinished code
Clean up. Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/lockd/svc4proc.c')
-rw-r--r--fs/lockd/svc4proc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/lockd/svc4proc.c b/fs/lockd/svc4proc.c
index 8a72c418cdcc..1d0400d94b3d 100644
--- a/fs/lockd/svc4proc.c
+++ b/fs/lockd/svc4proc.c
@@ -142,18 +142,6 @@ __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
-#if 0
- /* If supplied state doesn't match current state, we assume it's
- * an old request that time-warped somehow. Any error return would
- * do in this case because it's irrelevant anyway.
- *
- * NB: We don't retrieve the remote host's state yet.
- */
- if (host->h_nsmstate && host->h_nsmstate != argp->state) {
- resp->status = nlm_lck_denied_nolocks;
- } else
-#endif
-
/* Now try to lock the file */
resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
argp->block, &argp->cookie,