1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctx

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2011-12-12 14:15:03 +01:00
parent 7081d7e78f
commit 763fe4216b
13 changed files with 22 additions and 25 deletions

View File

@ -584,7 +584,6 @@ struct smbd_server_connection {
} locks;
} smb1;
struct {
struct tevent_context *event_ctx;
struct tevent_queue *recv_queue;
struct tevent_queue *send_queue;
struct tstream_context *stream;

View File

@ -69,7 +69,7 @@ NTSTATUS smbd_smb2_request_process_break(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_oplock_break_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_oplock_level,
in_file_id_volatile);

View File

@ -227,7 +227,7 @@ NTSTATUS smbd_smb2_request_process_create(struct smbd_smb2_request *smb2req)
}
tsubreq = smbd_smb2_create_send(smb2req,
smb2req->sconn->smb2.event_ctx,
smb2req->sconn->ev_ctx,
smb2req,
in_oplock_level,
in_impersonation_level,
@ -1095,7 +1095,7 @@ void schedule_deferred_open_message_smb2(
(unsigned long long)mid ));
tevent_schedule_immediate(state->im,
smb2req->sconn->smb2.event_ctx,
smb2req->sconn->ev_ctx,
smbd_smb2_create_request_dispatch_immediate,
smb2req);
}
@ -1215,7 +1215,7 @@ bool push_deferred_open_message_smb2(struct smbd_smb2_request *smb2req,
&end_time,
true) ));
state->te = event_add_timed(smb2req->sconn->smb2.event_ctx,
state->te = tevent_add_timer(smb2req->sconn->ev_ctx,
state,
end_time,
smb2_deferred_open_timer,

View File

@ -122,7 +122,7 @@ NTSTATUS smbd_smb2_request_process_find(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_find_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_file_info_class,
in_flags,

View File

@ -56,7 +56,7 @@ NTSTATUS smbd_smb2_request_process_flush(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_flush_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_file_id_volatile);
if (subreq == NULL) {

View File

@ -104,7 +104,7 @@ NTSTATUS smbd_smb2_request_process_getinfo(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_getinfo_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_info_type,
in_file_info_class,

View File

@ -98,7 +98,7 @@ NTSTATUS smbd_smb2_request_process_ioctl(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_ioctl_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_ctl_code,
in_file_id_volatile,
@ -555,7 +555,7 @@ static void smbd_smb2_ioctl_pipe_write_done(struct tevent_req *subreq)
TALLOC_FREE(subreq);
subreq = np_read_send(state->smbreq->conn,
state->smb2req->sconn->smb2.event_ctx,
state->smb2req->sconn->ev_ctx,
state->fsp->fake_file_handle,
state->out_output.data,
state->out_output.length);

View File

@ -122,7 +122,7 @@ NTSTATUS smbd_smb2_request_process_lock(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_lock_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_smbpid,
in_file_id_volatile,

View File

@ -84,7 +84,7 @@ NTSTATUS smbd_smb2_request_process_notify(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_notify_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_flags,
in_output_buffer_length,
@ -347,7 +347,7 @@ static void smbd_smb2_notify_reply(struct smb_request *smbreq,
* being arround after calling this function
*/
tevent_schedule_immediate(state->im,
state->smb2req->sconn->smb2.event_ctx,
state->smb2req->sconn->ev_ctx,
smbd_smb2_notify_reply_trigger,
req);
}

View File

@ -87,7 +87,7 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_read_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_smbpid,
in_file_id_volatile,

View File

@ -98,8 +98,6 @@ static NTSTATUS smbd_initialize_smb2(struct smbd_server_connection *sconn)
TALLOC_FREE(sconn->smb1.fde);
sconn->smb2.event_ctx = sconn->ev_ctx;
sconn->smb2.recv_queue = tevent_queue_create(sconn, "smb2 recv queue");
if (sconn->smb2.recv_queue == NULL) {
return NT_STATUS_NO_MEMORY;
@ -803,7 +801,7 @@ static NTSTATUS smb2_send_async_interim_response(const struct smbd_smb2_request
print_req_vectors(nreq);
}
nreq->subreq = tstream_writev_queue_send(nreq,
nreq->sconn->smb2.event_ctx,
nreq->sconn->ev_ctx,
nreq->sconn->smb2.stream,
nreq->sconn->smb2.send_queue,
nreq->out.vector,
@ -963,7 +961,7 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
}
defer_endtime = timeval_current_ofs_usec(defer_time);
req->async_te = tevent_add_timer(req->sconn->smb2.event_ctx,
req->async_te = tevent_add_timer(req->sconn->ev_ctx,
req, defer_endtime,
smbd_smb2_request_pending_timer,
req);
@ -1084,7 +1082,7 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev,
}
subreq = tstream_writev_queue_send(state,
state->sconn->smb2.event_ctx,
state->sconn->ev_ctx,
state->sconn->smb2.stream,
state->sconn->smb2.send_queue,
state->vector,
@ -1850,7 +1848,7 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req)
return NT_STATUS_NO_MEMORY;
}
tevent_schedule_immediate(im,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
smbd_smb2_request_dispatch_immediate,
req);
return NT_STATUS_OK;
@ -1890,7 +1888,7 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req)
}
subreq = tstream_writev_queue_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req->sconn->smb2.stream,
req->sconn->smb2.send_queue,
req->out.vector,
@ -2167,7 +2165,7 @@ NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
SBVAL(body, 0x10, file_id_volatile);
subreq = tstream_writev_queue_send(state,
sconn->smb2.event_ctx,
sconn->ev_ctx,
sconn->smb2.stream,
sconn->smb2.send_queue,
&state->vector, 1);
@ -2606,7 +2604,7 @@ static NTSTATUS smbd_smb2_request_next_incoming(struct smbd_server_connection *s
}
/* ask for the next request */
subreq = smbd_smb2_request_read_send(sconn, sconn->smb2.event_ctx, sconn);
subreq = smbd_smb2_request_read_send(sconn, sconn->ev_ctx, sconn);
if (subreq == NULL) {
return NT_STATUS_NO_MEMORY;
}

View File

@ -92,7 +92,7 @@ NTSTATUS smbd_smb2_request_process_setinfo(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_setinfo_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_info_type,
in_file_info_class,

View File

@ -95,7 +95,7 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req)
}
subreq = smbd_smb2_write_send(req,
req->sconn->smb2.event_ctx,
req->sconn->ev_ctx,
req,
in_smbpid,
in_file_id_volatile,