s3:smbd: also call handle_share_mode_lease for directories
commit9e619f535fa561a5d37d98f3809726bffd6ff91d
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Aug 2022 09:23:25 +0000 (10 09:23 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (20 00:34 +0000)
tree6e80c7b360dc8c54f9f1845cd830dd1f5b3f79bd
parent0a8619c8458fe1ab3445b9b6b22ec8ffd86e9e06
s3:smbd: also call handle_share_mode_lease for directories

It means we call open_mode_check() now only via handle_share_mode_lease()
and the fact that we never grant any directory leases (yet), means
that delay_for_oplocks() avoids the share_mode_forall_entries() loop.

This is a way into supporting directory leases, but that's not
the point for this commit, the point is that.

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/smbd/open.c