When contending a WRITE with an existing READ, the contender puts
himself into the exclusive slot, waiting for the READers to go
away. If the async lock request is canceled before we got the lock, we
need to remove ourselves again. This is done in the destructor of the
g_lock_lock_state. In the successful case, the destructor needs to go
away.
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): Sun Dec 22 18:57:17 UTC 2019 on sn-devel-184
+++ /dev/null
-samba3.smbtorture_s3.LOCAL-G-LOCK4A
\ No newline at end of file
return NT_STATUS_LOCK_NOT_GRANTED;
}
+ talloc_set_destructor(req_state, NULL);
+
/*
* Retry after a conflicting lock was released
*/