Fix bug #8175 - smbd deadlock.
commitfa6fdabed87049a8351e31349fb3a00dde5ea2ee
authorJeremy Allison <jra@samba.org>
Wed, 1 Jun 2011 19:11:53 +0000 (1 12:11 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Jun 2011 18:04:32 +0000 (7 20:04 +0200)
tree56359b884c24db0e5fb1d4fb8e3954b6a52ad9f2
parent8ea5b00495307844b0d0ff60711ff7cbaf3f6457
Fix bug #8175 - smbd deadlock.

Force the open operation (which is the expensive one anyway) to
acquire and release locks in a way compatible with the more common
do_lock check.

Jeremy.
(cherry picked from commit f8e1eea238a332ce503c40108d59862b32f83fee)
source3/smbd/open.c