diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-09-25 19:55:03 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-09-26 16:22:04 (GMT) |
commit | 255129d1e9ca0ed3d69d5517fae3e03d7ab4b806 (patch) | |
tree | e3dedbffebd4f0e15da97684500296c9bc4d3d6a /sound/arm/sa11xx-uda1341.c | |
parent | f6a592e8abd2f2394623ce5427cbb4c265495974 (diff) | |
download | linux-fsl-qoriq-255129d1e9ca0ed3d69d5517fae3e03d7ab4b806.tar.xz |
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>
Diffstat (limited to 'sound/arm/sa11xx-uda1341.c')
0 files changed, 0 insertions, 0 deletions