smbd: rename sconn->pool to sconn->raw_thread_pool
authorRalph Boehme <slow@samba.org>
Fri, 13 Jul 2018 15:17:50 +0000 (17:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2018 15:49:06 +0000 (17:49 +0200)
This should in future not be used directly, we'll provide
wrapper pools, which will provide impersonation for
path based async calls.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_aio_pthread.c
source3/modules/vfs_default.c
source3/smbd/globals.h
source3/smbd/process.c

index c1d1a7d518a6bb3f44279d6f9ae531abac1c9096..da1ca534907f16d8c96a64d43d8235339a0b9433 100644 (file)
@@ -277,7 +277,7 @@ static int open_async(const files_struct *fsp,
 
        subreq = pthreadpool_tevent_job_send(opd,
                                             fsp->conn->user_ev_ctx,
-                                            fsp->conn->sconn->pool,
+                                            fsp->conn->sconn->raw_thread_pool,
                                             aio_open_worker, opd);
        if (subreq == NULL) {
                return -1;
index f078cef9422a92743954f29adcdf15ed3e95d8fe..72dbd75673590e8ab7179ca0c900bd4dc59f6f9a 100644 (file)
@@ -686,7 +686,7 @@ static struct tevent_req *vfswrap_pread_send(struct vfs_handle_struct *handle,
        SMBPROFILE_BYTES_ASYNC_SET_IDLE(state->profile_bytes);
 
        subreq = pthreadpool_tevent_job_send(
-               state, ev, handle->conn->sconn->pool,
+               state, ev, handle->conn->sconn->raw_thread_pool,
                vfs_pread_do, state);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
@@ -804,7 +804,7 @@ static struct tevent_req *vfswrap_pwrite_send(struct vfs_handle_struct *handle,
        SMBPROFILE_BYTES_ASYNC_SET_IDLE(state->profile_bytes);
 
        subreq = pthreadpool_tevent_job_send(
-               state, ev, handle->conn->sconn->pool,
+               state, ev, handle->conn->sconn->raw_thread_pool,
                vfs_pwrite_do, state);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
@@ -914,7 +914,8 @@ static struct tevent_req *vfswrap_fsync_send(struct vfs_handle_struct *handle,
        SMBPROFILE_BYTES_ASYNC_SET_IDLE(state->profile_bytes);
 
        subreq = pthreadpool_tevent_job_send(
-               state, ev, handle->conn->sconn->pool, vfs_fsync_do, state);
+               state, ev, handle->conn->sconn->raw_thread_pool,
+               vfs_fsync_do, state);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
        }
index 77e8f5c0dd6b5178e43e71c4b020f2fcff9e4427..e75ec5408f33dcf32ba045ff11535b6211a65fe9 100644 (file)
@@ -939,7 +939,7 @@ struct smbd_server_connection {
                } locks;
        } smb2;
 
-       struct pthreadpool_tevent *pool;
+       struct pthreadpool_tevent *raw_thread_pool;
 
        struct smbXsrv_client *client;
 };
index 0a4106257f5891cc5e8a573f23ff081dff3f8be0..8e1fceab0aaf6fbc7bcc727e5ffce240cc8ab655 100644 (file)
@@ -3950,7 +3950,7 @@ void smbd_process(struct tevent_context *ev_ctx,
        sconn->msg_ctx = msg_ctx;
 
        ret = pthreadpool_tevent_init(sconn, lp_aio_max_threads(),
-                                     &sconn->pool);
+                                     &sconn->raw_thread_pool);
        if (ret != 0) {
                exit_server("pthreadpool_tevent_init() failed.");
        }