s3:locking: split out get_share_mode_lock_internal()
commit977498d3eb821c6c30c5a991949054f796579966
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Aug 2022 11:03:33 +0000 (26 13:03 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (20 00:34 +0000)
tree92aa64c08ab24d9b3dc911852f9345955f063eda
parent0b94695ebf8eb2edd6de7fc549857393461e4d50
s3:locking: split out get_share_mode_lock_internal()

This detaches the logic from the talloc(mem_ctx, struct share_mode_lock).
In future we will have cases where we use a stack variable instead,
which will be much cheaper.

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>
source3/locking/share_mode_lock.c