summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-04-05 14:16:21 -0700
committerJeremy Allison <jra@samba.org>2010-04-05 14:16:21 -0700
commitc75184b8a14ee686dacbf2dcf01eeade0327b648 (patch)
tree6a895212a698b028006fd5247a5e9635f882c986 /source3/include
parent2754a8e2b60fb07ebec6384fc3c3a7c3450de5b3 (diff)
downloadsamba-c75184b8a14ee686dacbf2dcf01eeade0327b648.tar.gz
samba-c75184b8a14ee686dacbf2dcf01eeade0327b648.tar.bz2
samba-c75184b8a14ee686dacbf2dcf01eeade0327b648.zip
Fix issue with aio where r/w lock wasn't kept across aio read operations.
Change schedule_aio_read_and_X/schedule_aio_write_and_X to return NTSTATUS. Move the grant and release of the lock into the aio code. Jeremy
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index c9fe61014a..7e45fed76c 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6047,11 +6047,11 @@ struct regval_ctr *svcctl_fetch_regvalues( const char *name, NT_USER_TOKEN *toke
/* The following definitions come from smbd/aio.c */
-bool schedule_aio_read_and_X(connection_struct *conn,
+NTSTATUS schedule_aio_read_and_X(connection_struct *conn,
struct smb_request *req,
files_struct *fsp, SMB_OFF_T startpos,
size_t smb_maxcnt);
-bool schedule_aio_write_and_X(connection_struct *conn,
+NTSTATUS schedule_aio_write_and_X(connection_struct *conn,
struct smb_request *req,
files_struct *fsp, char *data,
SMB_OFF_T startpos,