mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
b508c5a0be
This allows us get rid of the otherwise unused share_mode_do_locked(). It means we only have one code path that handles the g_lock handling. This looks like a performance degradation, but all callers of share_mode_wakeup_waiters() already took the share_mode_lock, so we only increment the refcount. Note the additional talloc(mem_ctx, struct share_mode_lock) will be optimized away in the next commits. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>