Skip to content

Commit a872c73

Browse files
committed
lockd: Remove some snippets of unfinished code
Clean up. Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent e594884 commit a872c73

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

fs/lockd/svc4proc.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,6 @@ __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
142142
if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
143143
return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
144144

145-
#if 0
146-
/* If supplied state doesn't match current state, we assume it's
147-
* an old request that time-warped somehow. Any error return would
148-
* do in this case because it's irrelevant anyway.
149-
*
150-
* NB: We don't retrieve the remote host's state yet.
151-
*/
152-
if (host->h_nsmstate && host->h_nsmstate != argp->state) {
153-
resp->status = nlm_lck_denied_nolocks;
154-
} else
155-
#endif
156-
157145
/* Now try to lock the file */
158146
resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
159147
argp->block, &argp->cookie,

fs/lockd/svcproc.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,6 @@ __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
165165
if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
166166
return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
167167

168-
#if 0
169-
/* If supplied state doesn't match current state, we assume it's
170-
* an old request that time-warped somehow. Any error return would
171-
* do in this case because it's irrelevant anyway.
172-
*
173-
* NB: We don't retrieve the remote host's state yet.
174-
*/
175-
if (host->h_nsmstate && host->h_nsmstate != argp->state) {
176-
resp->status = nlm_lck_denied_nolocks;
177-
} else
178-
#endif
179-
180168
/* Now try to lock the file */
181169
resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
182170
argp->block, &argp->cookie,

0 commit comments

Comments
 (0)