kernel-ark/fs/lockd
Trond Myklebust 255129d1e9 NLM: Fix a circular lock dependency in lockd
The problem is that the garbage collector for the 'host' structures
nlm_gc_hosts(), holds nlm_host_mutex while calling down to
nlmsvc_mark_resources, which, eventually takes the file->f_mutex.

We cannot therefore call nlmsvc_lookup_host() from within
nlmsvc_create_block, since the caller will already hold file->f_mutex, so
the attempt to grab nlm_host_mutex may deadlock.

Fix the problem by calling nlmsvc_lookup_host() outside the file->f_mutex.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-09-26 09:22:04 -07:00
..
clntlock.c
clntproc.c
host.c
Makefile
mon.c
svc4proc.c
svc.c
svclock.c NLM: Fix a circular lock dependency in lockd 2007-09-26 09:22:04 -07:00
svcproc.c
svcshare.c
svcsubs.c
xdr4.c
xdr.c