smbd: Fix retry for kernel-oplocked files
authorVolker Lendecke <vl@samba.org>
Tue, 30 Jul 2019 10:24:53 +0000 (12:24 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Jul 2019 00:12:34 +0000 (00:12 +0000)
commit2b590e16bcb4f4e1f1f0bf049a863db38e634beb
treeb52cf54426a22c0a6f68c62eaf91b0c2d8a8e663
parentef582ffcf3a220b73f678d9bce0fd37800f76c54
smbd: Fix retry for kernel-oplocked files

This now removed comment describes the bug correctly:
/*
 * As this timer event is owned by req, it will
 * disappear if req it talloc_freed.
 */

In smb1, "req" disappears once the reply_whatever routine is done. Thus
the timer goes away and we never look at "req" again.

This change moves the valid data (xconn and mid) to
deferred_open_record, and changes the talloc hierarchy such that the
timer is now a child of open_rec, which is a child of the deferred
message.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14060
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 31 00:12:34 UTC 2019 on sn-devel-184
selftest/knownfail
source3/smbd/open.c