s3/smbd: add and use retry_open() instead of defer_open() in two places
commit1d16e5fca1dd8416dcf520885b6ff90ce0d5993a
authorRalph Boehme <slow@samba.org>
Tue, 7 Mar 2017 14:03:12 +0000 (7 15:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Mar 2017 09:51:46 +0000 (14 10:51 +0100)
treee5cb75a7c43a0feb0ed39679078855e849ad2315
parentdc328aa2fd17b844ee81211895138b424dd27e8a
s3/smbd: add and use retry_open() instead of defer_open() in two places

Add a new function that does an immediate open rescheduling.

The first deferred open this commit changes was never scheduled, as the
scheduling relies on a timeout of the watch on the sharemode lock.

This has been broken since the commits in

$ git log --reverse -p -10 8283fd0e0090ed12b0b12d5acb550642d621b026

That patchset added the dbwrap watch record logic to defer_open() and
removed the timers.

I'm doing this mainly to untangle the defer_open() logic which is
complicated by the lck arg.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7537

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit beaba6222848fb4ff4392b2247c5be1094b1d65b)
source3/smbd/open.c