smbd: Introduce static_share_mode_record
authorVolker Lendecke <vl@samba.org>
Thu, 27 Jun 2019 14:58:54 +0000 (16:58 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 4 Jul 2019 14:03:29 +0000 (14:03 +0000)
commit0be81cda56788864f4a08aaa7e99746a6f61b1f1
tree91eabc6bd8490a64ea122f585fe71fc6bee0c90b
parentaabc97ebc92f6b0977910a3125182e44ac4fdec9
smbd: Introduce static_share_mode_record

The next commit will introduce share_mode_do_locked(), which allocates
a share mode record on the stack. We have to expect nested
get_share_mode_lock() calls from within share_mode_do_locked() for
which we need to share a db_record.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/locking/share_mode_lock.c