summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_pthread.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-19s3:modules: s/struct event_context/struct tevent_contextStefan Metzmacher1-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-07-18s3: Move the aio_pthread read/write functionality to vfs_defaultVolker Lendecke1-160/+0
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3:vfs_aio_pthread: Convert to libasysVolker Lendecke1-524/+122
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-13Use HAVE_FSYNC, we bothered to test for it.Jeremy Allison1-0/+2
Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 13 04:44:42 CEST 2012 on sn-devel-104
2012-07-13Linux-specific optimization in aio_open code.Jeremy Allison1-0/+22
Use initial_allocation_size to allocate on disk if sent. Ignore failures (upper level will cope). Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 13 00:35:48 CEST 2012 on sn-devel-104
2012-07-12Add an optimization to pthread aio writes to also do fsync if requested.Jeremy Allison1-0/+15
Should help by ensuring complete writes done in sub-thread, not in the main thread.
2012-07-11Add in the threaded async open engine.Jeremy Allison1-0/+393
Fixes all issues raised originally. This code will only do threaded opens with thread-specific credentials (Linux for now) and changes credentials before doing the call. Also only fires on O_CREAT|O_EXCL so will only create new files, never open old ones async. Volker, this is isolated enough that it shouldn't prevent you from refactoring it into a new module when the aio pread/pwrite code is moved into the default aio path. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 11 08:04:56 CEST 2012 on sn-devel-104
2012-07-03Allow init_aio_threadpool() to be setup for different threadpool handles ↵Jeremy Allison1-10/+19
with different completion functions.
2012-06-25s3: Fix a typoVolker Lendecke1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jun 25 17:13:59 CEST 2012 on sn-devel-104
2012-06-25s3: Avoid a call to server_event_context()Volker Lendecke1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-12Fix return_fn when aio was cancelled. We need to return -1, errno = ECANCELED.Jeremy Allison1-0/+5
2012-04-11Simplify the logic around doing an immediate event reschedule.Jeremy Allison1-23/+7
We don't need to do a talloc here, we already have a long-lived pointer we can pass in as the private data. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 11 08:05:47 CEST 2012 on sn-devel-104
2012-04-09s3: Initialize aio_pending_size from aio_pthreadVolker Lendecke1-19/+22
2012-01-26Use sys_pread/sys_pwrite to cope correctly with 64-bit sizes. As in the ↵Jeremy Allison1-2/+16
default VFS case fall back from pread -> read and pwrite -> write on an ESPIPE error in the worker thread. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 26 02:11:28 CET 2012 on sn-devel-104
2012-01-25s3: Fix a panic in aio_pthreadVolker Lendecke1-1/+1
Found by Nir Drang <nir@fabrix.tv> Thanks! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 18:22:37 CET 2012 on sn-devel-104
2012-01-18s3-aio-pthread: num threads should be intVolker Lendecke1-4/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 18 21:04:20 CET 2012 on sn-devel-104
2012-01-12Ensure we always free aio_ex on all error paths by moving the TALLOC_FREEJeremy Allison1-1/+2
call out of smbd_aio_complete_aio_ex() and into the caller. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 12 03:10:52 CET 2012 on sn-devel-104
2012-01-10s3-aio_pthread: Fix the buildVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 10 11:54:01 CET 2012 on sn-devel-104
2012-01-10s3-aio_pthread: Make "pd_list" staticVolker Lendecke1-1/+1
2012-01-06Remove the commented out code.Jeremy Allison1-52/+1
2012-01-06Add "aio num threads" parameter to allow manual configuration ofJeremy Allison1-16/+15
threads via smb.conf if required. Ignore the number of cores. See comments inline.
2012-01-06Add a sys_get_number_of_cores() function that calls sysconf or sysctlJeremy Allison1-2/+13
and tunes the aio threads.
2012-01-05Add some debug to vfs_aio_pthread so I can see when jobs start and stop.Jeremy Allison1-0/+16
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 5 20:28:00 CET 2012 on sn-devel-104
2012-01-05Add S3 vfs_aio_pthread module to replace broken glibc aio code.Jeremy Allison1-0/+637
Compiles but not yet tested. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 5 01:43:51 CET 2012 on sn-devel-104