s3:locking: brl_get_locks_internal() should not expose a write lock if the caller...
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Mar 2011 09:04:12 +0000 (10:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Mar 2011 06:51:46 +0000 (07:51 +0100)
commite8411d6f9f1827ea88754fa97a2671cdf27a5554
tree3d2b83823b55fb5d3216b4c749b34dcb9fdb6480
parentc4cfffa4ed2037ba0faa18a1def00bc3745ff485
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
source3/locking/brlock.c