diff options
author | Jeremy Allison <jra@samba.org> | 2018-05-09 09:32:45 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-05-09 22:24:38 +0200 |
commit | 52dc959bb21a102a14437812418bbb75b0bb231f (patch) | |
tree | e2ecd0d768d4e0ca42ac951ea299c25cededa860 /source3/smbd/aio.c | |
parent | f0e6453b0420fe9d062936d4ddc05f44b40cf2ba (diff) | |
download | samba-52dc959bb21a102a14437812418bbb75b0bb231f.tar.gz |
s3: smbd: Remove unused counters for outstanding aio calls.
Only a debug message used this.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed May 9 22:24:38 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 4fc1132be87..abf8858099b 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -26,27 +26,6 @@ #include "lib/tevent_wait.h" /**************************************************************************** - Statics plus accessor functions. -*****************************************************************************/ - -static int outstanding_aio_calls; - -int get_outstanding_aio_calls(void) -{ - return outstanding_aio_calls; -} - -void increment_outstanding_aio_calls(void) -{ - outstanding_aio_calls++; -} - -void decrement_outstanding_aio_calls(void) -{ - outstanding_aio_calls--; -} - -/**************************************************************************** The buffer we keep around whilst an aio request is in process. *****************************************************************************/ @@ -69,12 +48,6 @@ bool aio_write_through_requested(struct aio_extra *aio_ex) return aio_ex->write_through; } -static int aio_extra_destructor(struct aio_extra *aio_ex) -{ - decrement_outstanding_aio_calls(); - return 0; -} - /**************************************************************************** Create the extended aio struct we must keep around for the lifetime of the aio call. @@ -101,9 +74,7 @@ static struct aio_extra *create_aio_extra(TALLOC_CTX *mem_ctx, return NULL; } } - talloc_set_destructor(aio_ex, aio_extra_destructor); aio_ex->fsp = fsp; - increment_outstanding_aio_calls(); return aio_ex; } @@ -523,11 +494,9 @@ NTSTATUS schedule_aio_write_and_X(connection_struct *conn, } DEBUG(10,("schedule_aio_write_and_X: scheduled aio_write for file " - "%s, offset %.0f, len = %u (mid = %u) " - "outstanding_aio_calls = %d\n", + "%s, offset %.0f, len = %u (mid = %u)\n", fsp_str_dbg(fsp), (double)startpos, (unsigned int)numtowrite, - (unsigned int)aio_ex->smbreq->mid, - get_outstanding_aio_calls() )); + (unsigned int)aio_ex->smbreq->mid)); return NT_STATUS_OK; } @@ -906,13 +875,11 @@ NTSTATUS schedule_aio_smb2_write(connection_struct *conn, */ DEBUG(10,("smb2: scheduled aio_write for file " - "%s, offset %.0f, len = %u (mid = %u) " - "outstanding_aio_calls = %d\n", + "%s, offset %.0f, len = %u (mid = %u)\n", fsp_str_dbg(fsp), (double)in_offset, (unsigned int)in_data.length, - (unsigned int)aio_ex->smbreq->mid, - get_outstanding_aio_calls() )); + (unsigned int)aio_ex->smbreq->mid)); return NT_STATUS_OK; } |