|
@@ -358,10 +358,10 @@ nlmsvc_defer_lock_rqst(struct svc_rqst *rqstp, struct nlm_block *block)
|
|
|
*/
|
|
|
__be32
|
|
|
nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file,
|
|
|
- struct nlm_lock *lock, int wait, struct nlm_cookie *cookie)
|
|
|
+ struct nlm_host *host, struct nlm_lock *lock, int wait,
|
|
|
+ struct nlm_cookie *cookie)
|
|
|
{
|
|
|
struct nlm_block *block = NULL;
|
|
|
- struct nlm_host *host;
|
|
|
int error;
|
|
|
__be32 ret;
|
|
|
|
|
@@ -373,11 +373,6 @@ nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file,
|
|
|
(long long)lock->fl.fl_end,
|
|
|
wait);
|
|
|
|
|
|
- /* Create host handle for callback */
|
|
|
- host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len);
|
|
|
- if (host == NULL)
|
|
|
- return nlm_lck_denied_nolocks;
|
|
|
-
|
|
|
/* Lock file against concurrent access */
|
|
|
mutex_lock(&file->f_mutex);
|
|
|
/* Get existing block (in case client is busy-waiting)
|
|
@@ -450,7 +445,6 @@ nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file,
|
|
|
out:
|
|
|
mutex_unlock(&file->f_mutex);
|
|
|
nlmsvc_release_block(block);
|
|
|
- nlm_release_host(host);
|
|
|
dprintk("lockd: nlmsvc_lock returned %u\n", ret);
|
|
|
return ret;
|
|
|
}
|