Revert "s3/smbd: fix deferred open with streams and kernel oplocks"
commit0b0d2485ea55e324577b01a880286183e14b2dac
authorJeremy Allison <jra@samba.org>
Fri, 3 Nov 2017 21:47:01 +0000 (3 21:47 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Nov 2017 08:28:13 +0000 (13 09:28 +0100)
treecea4df849474433fc6d819b295ec11fe29b97591
parent2505c6c4071f142571bde5809504e8665837d412
Revert "s3/smbd: fix deferred open with streams and kernel oplocks"

This reverts commit b35a296a27a0807c780f2a9e7af2f2e93feefaa8.

This was the cause of

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13058

1. client of smbd-1 opens the file and sets the oplock.
2. client of smbd-2 tries to open the file. open() fails(EAGAIN) and open is deferred.
3. client of smbd-1 sends oplock break request to the client.
4. client of smbd-1 closes the file.
5. client of smbd-1 opens the file and sets the oplock.
6. client of smbd-2 calls defer_open_done(), sees that the file lease was not changed
and does not reschedule open.

and is no longer needed now vfs_streams_xattr.c no longer opens
the base file internally.

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