]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: remove l_pid field from nfs_lockowner
authorNeilBrown <neilb@suse.com>
Thu, 13 Oct 2016 04:26:47 +0000 (15:26 +1100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:57:07 +0000 (17:57 -0500)
commitf303ec0d8dbd1684c0e6d9c18fec39feaded1b17
tree25de3c489b02736f94b4625797bd7850bdc3947f
parentb1c6866c1dc48eed4d0ec9df5847b7ec2b24da37
NFS: remove l_pid field from nfs_lockowner

this field is not used in any important way and probably should
have been removed by

Commit: 9b5a0127de02 ("nfs4: treat lock owners as opaque values")

which removed the pid argument from nfs4_get_lock_state.

Except in unusual and uninteresting cases, two threads with the same
->tgid will have the same ->files pointer, so keeping them both
for comparison brings no benefit.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c
fs/nfs/nfs4proc.c
fs/nfs/pagelist.c
fs/nfs/write.c
include/linux/nfs_fs.h