s3:locking: brl_get_locks_internal() should not expose a write lock if the caller...
commit419730ed864508708a0dd6eab484b24c1b7c0234
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Mar 2011 09:04:12 +0000 (17 10:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Mar 2011 13:35:44 +0000 (18 14:35 +0100)
tree3930a631ba714240ffdcb2b7b0d75b97588c807b
parentbb5bd2b9a885e6ddf84362591e7ab223eaa66b64
s3:locking: brl_get_locks_internal() should not expose a write lock if the caller wants read_only

This triggered deadlocks in the cluster case of brl_get_locks_readonly().

Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze
(cherry picked from commit e8411d6f9f1827ea88754fa97a2671cdf27a5554)
source3/locking/brlock.c