Subject: [PATCH] pspace: Take advanage of the kernel wide unique pid in the nfs lock client From: Eric W. Biederman Date: 1134674022 -0700 --- fs/lockd/clntproc.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) f283fbcdb5f664dc8f456dbf344cc75ea664d378 diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c index f6aa0a7..2e3627d 100644 --- a/fs/lockd/clntproc.c +++ b/fs/lockd/clntproc.c @@ -130,8 +130,9 @@ static void nlmclnt_setlockargs(struct n memcpy(&lock->fh, NFS_FH(fl->fl_file->f_dentry->d_inode), sizeof(struct nfs_fh)); lock->caller = current->host->utsname.nodename; lock->oh.data = req->a_owner; - lock->oh.len = sprintf(req->a_owner, "%d@%s", - current->tid, current->host->utsname.nodename); + lock->oh.len = sprintf(req->a_owner, "%u@%s", + pid_nr(current, PIDTYPE_TID), + current->host->utsname.nodename); locks_copy_lock(&lock->fl, fl); } -- 1.0.GIT