]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Release the vnode lock and close the linker file vnode earlier in
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 2 Oct 2010 16:04:50 +0000 (16:04 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 2 Oct 2010 16:04:50 +0000 (16:04 +0000)
commitf1d2d3052a381730813ccee600768fcbb6dba022
treed36404cb078641a8d20a3e6954eb1b7dc40713a3
parentfec07a7df18e4d8e96619f4faf6cc41dca4f0160
Release the vnode lock and close the linker file vnode earlier in
the linker_load_file methods. The change is that the consequent
linker_file_unload() call is not under the vnode lock anymore.
This prevents the LOR between kernel linker sx xlock and vnode lock,
because linker_file_unload() relocks kernel linker lock.

MFC after: 2 weeks
sys/kern/link_elf.c
sys/kern/link_elf_obj.c