Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event...
[samba.git] / source3 / smbd / smb2_lock.c
index da5a54df623349c15e38ea829ff0384559c84a1e..3cc591089a42a5df7f0f51edf7247874b08b9c2a 100644 (file)
@@ -134,7 +134,7 @@ NTSTATUS smbd_smb2_request_process_lock(struct smbd_smb2_request *req)
                return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED);
        }
 
-       subreq = smbd_smb2_lock_send(req, req->ev_ctx,
+       subreq = smbd_smb2_lock_send(req, req->sconn->ev_ctx,
                                     req, in_fsp,
                                     in_lock_count,
                                     in_locks);
@@ -368,7 +368,7 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
        }
 
        if (async) {
-               tevent_req_defer_callback(req, smb2req->ev_ctx);
+               tevent_req_defer_callback(req, smb2req->sconn->ev_ctx);
                SMBPROFILE_IOBYTES_ASYNC_SET_IDLE(smb2req->profile);
                return req;
        }