summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_aio_pthread.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs:aio_pthread: use smbXsrv_connection for ↵Michael Adam2014-10-231-1/+9
| | | | | | | | | | | | | | | | | | | schedule_deferred_open_message_smb This fixes an incompatible pointer warning which uncovered a real bug. This caller was missed when converting the function. This fix is only temporary, since we use fsp->sconn->client->connections which is supposed to be the start of the list of transport connections by a given client treated by this smbd process. Currently there is only one such connection, but with multi-channel there might be more. So we will need to improve this in the future. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Oct 23 23:10:35 CEST 2014 on sn-devel-104
* vfs: fix a typoVolker Lendecke2014-10-211-1/+1
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 21 04:58:44 CEST 2014 on sn-devel-104
* pthreadpool: Allow multiple jobs to be receivedVolker Lendecke2014-03-271-2/+2
| | | | | | | This can avoid syscalls when multiple jobs are finished simultaneously Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:modules: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_Stefan Metzmacher2013-02-191-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules: s/struct fd_event/struct tevent_fdStefan Metzmacher2013-02-191-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:modules: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-191-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3: Move the aio_pthread read/write functionality to vfs_defaultVolker Lendecke2012-07-181-160/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:vfs_aio_pthread: Convert to libasysVolker Lendecke2012-07-181-524/+122
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Use HAVE_FSYNC, we bothered to test for it.Jeremy Allison2012-07-131-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
* Linux-specific optimization in aio_open code.Jeremy Allison2012-07-131-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
* Add an optimization to pthread aio writes to also do fsync if requested.Jeremy Allison2012-07-121-0/+15
| | | | | Should help by ensuring complete writes done in sub-thread, not in the main thread.
* Add in the threaded async open engine.Jeremy Allison2012-07-111-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
* Allow init_aio_threadpool() to be setup for different threadpool handles ↵Jeremy Allison2012-07-031-10/+19
| | | | with different completion functions.
* s3: Fix a typoVolker Lendecke2012-06-251-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
* s3: Avoid a call to server_event_context()Volker Lendecke2012-06-251-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix return_fn when aio was cancelled. We need to return -1, errno = ECANCELED.Jeremy Allison2012-04-121-0/+5
|
* Simplify the logic around doing an immediate event reschedule.Jeremy Allison2012-04-111-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
* s3: Initialize aio_pending_size from aio_pthreadVolker Lendecke2012-04-091-19/+22
|
* Use sys_pread/sys_pwrite to cope correctly with 64-bit sizes. As in the ↵Jeremy Allison2012-01-261-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
* s3: Fix a panic in aio_pthreadVolker Lendecke2012-01-251-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
* s3-aio-pthread: num threads should be intVolker Lendecke2012-01-181-4/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 18 21:04:20 CET 2012 on sn-devel-104
* Ensure we always free aio_ex on all error paths by moving the TALLOC_FREEJeremy Allison2012-01-121-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
* s3-aio_pthread: Fix the buildVolker Lendecke2012-01-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 10 11:54:01 CET 2012 on sn-devel-104
* s3-aio_pthread: Make "pd_list" staticVolker Lendecke2012-01-101-1/+1
|
* Remove the commented out code.Jeremy Allison2012-01-061-52/+1
|
* Add "aio num threads" parameter to allow manual configuration ofJeremy Allison2012-01-061-16/+15
| | | | | threads via smb.conf if required. Ignore the number of cores. See comments inline.
* Add a sys_get_number_of_cores() function that calls sysconf or sysctlJeremy Allison2012-01-061-2/+13
| | | | and tunes the aio threads.
* Add some debug to vfs_aio_pthread so I can see when jobs start and stop.Jeremy Allison2012-01-051-0/+16
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 5 20:28:00 CET 2012 on sn-devel-104
* Add S3 vfs_aio_pthread module to replace broken glibc aio code.Jeremy Allison2012-01-051-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