From c75184b8a14ee686dacbf2dcf01eeade0327b648 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 5 Apr 2010 14:16:21 -0700 Subject: 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 --- source3/include/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/include') 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, -- cgit