Revert "s3/smbd: fix deferred open with streams and kernel oplocks"
authorJeremy Allison <jra@samba.org>
Fri, 3 Nov 2017 21:47:01 +0000 (21:47 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 10 Nov 2017 22:27:10 +0000 (23:27 +0100)
commit62a556d5c8ce0650e3a2095ee62bea16c8eab1d5
tree7df55a159e6893e508523faec9c78e2d60ed6dab
parent732ba3c84a2d40040550ea36b0478dd6af9a173a
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>
source3/smbd/open.c