]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: Convert NLM service fl_owner to nlm_lockowner
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 23 May 2019 14:45:45 +0000 (10:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jul 2019 21:52:08 +0000 (17:52 -0400)
commit481d20c792a9732efd74e89c07a8f677aaf6f83d
treee13bb61003180e2cf10d5266af2a24052f5d4fff
parent890ef5cea9d65075d7380547d2fe02d5c5b07b4d
lockd: Convert NLM service fl_owner to nlm_lockowner

Do as the NLM client: allocate and track a struct nlm_lockowner for use as
the fl_owner for locks created by the NLM sever.  This allows us to keep
the svid within this structure for matching locks, and will allow us to
track the pid of lockd in a future patch.  It should also allow easier
reference of the nlm_host in conflicting locks, and simplify lock hashing
and comparison.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
[bfields@redhat.com: fix type of some error returns]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc4proc.c
fs/lockd/svclock.c
fs/lockd/svcproc.c
fs/lockd/svcsubs.c
fs/lockd/xdr.c
fs/lockd/xdr4.c
include/linux/lockd/lockd.h