|
@@ -119,7 +119,7 @@ nlm4_decode_lock(__be32 *p, struct nlm_lock *lock)
|
|
|
|
|
|
|
|
locks_init_lock(fl);
|
|
locks_init_lock(fl);
|
|
|
fl->fl_owner = current->files;
|
|
fl->fl_owner = current->files;
|
|
|
- fl->fl_pid = (pid_t)lock->svid;
|
|
|
|
|
|
|
+ fl->fl_pid = current->tgid;
|
|
|
fl->fl_flags = FL_POSIX;
|
|
fl->fl_flags = FL_POSIX;
|
|
|
fl->fl_type = F_RDLCK; /* as good as anything else */
|
|
fl->fl_type = F_RDLCK; /* as good as anything else */
|
|
|
p = xdr_decode_hyper(p, &start);
|
|
p = xdr_decode_hyper(p, &start);
|
|
@@ -266,7 +266,7 @@ nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p)
|
|
|
memset(lock, 0, sizeof(*lock));
|
|
memset(lock, 0, sizeof(*lock));
|
|
|
locks_init_lock(&lock->fl);
|
|
locks_init_lock(&lock->fl);
|
|
|
lock->svid = ~(u32) 0;
|
|
lock->svid = ~(u32) 0;
|
|
|
- lock->fl.fl_pid = (pid_t)lock->svid;
|
|
|
|
|
|
|
+ lock->fl.fl_pid = current->tgid;
|
|
|
|
|
|
|
|
if (!(p = nlm4_decode_cookie(p, &argp->cookie))
|
|
if (!(p = nlm4_decode_cookie(p, &argp->cookie))
|
|
|
|| !(p = xdr_decode_string_inplace(p, &lock->caller,
|
|
|| !(p = xdr_decode_string_inplace(p, &lock->caller,
|