summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 03:53:00 +0200
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:16 +0200
commitfb8686962a542c70a2104247a77b48cacd8a9663 (patch)
tree8bb6351185144774a9f4c8c0b1e76c0c1c15ec80 /source3/modules
parent9fc9ff9bfac604007440776d06b71eba5b5005e5 (diff)
downloadsamba-fb8686962a542c70a2104247a77b48cacd8a9663.tar.gz
samba-fb8686962a542c70a2104247a77b48cacd8a9663.tar.bz2
samba-fb8686962a542c70a2104247a77b48cacd8a9663.zip
s3: Remove smbd_server_conn from files_forall
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_aio_fork.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index 02b1394216..90d06b10c1 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -442,7 +442,8 @@ static struct files_struct *close_fsp_fd(struct files_struct *fsp,
return NULL;
}
-static NTSTATUS create_aio_child(struct aio_child_list *children,
+static NTSTATUS create_aio_child(struct smbd_server_connection *sconn,
+ struct aio_child_list *children,
size_t map_size,
struct aio_child **presult)
{
@@ -480,7 +481,7 @@ static NTSTATUS create_aio_child(struct aio_child_list *children,
if (result->pid == 0) {
close(fdpair[0]);
result->sockfd = fdpair[1];
- files_forall(close_fsp_fd, NULL);
+ files_forall(sconn, close_fsp_fd, NULL);
aio_child_loop(result->sockfd, result->map);
}
@@ -538,7 +539,8 @@ static NTSTATUS get_idle_child(struct vfs_handle_struct *handle,
if (child == NULL) {
DEBUG(10, ("no idle child found, creating new one\n"));
- status = create_aio_child(children, 128*1024, &child);
+ status = create_aio_child(handle->conn->sconn, children,
+ 128*1024, &child);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("create_aio_child failed: %s\n",
nt_errstr(status)));