]> git.ipfire.org Git - thirdparty/samba.git/commit
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Nov 2017 09:34:15 +0000 (10:34 +0100)
commit32ee9d16e0d23a44c581f83a3a73cde2329f33ff
tree45e3c1d6b0dff6b28a3b96bea4e1d0561c2fce49
parent003eefb35e1880d7ea7e0933b9c8ac11e1c802d9
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