From 61d86bdfddf6bb37e9b0c8197cad7f41302e86e3 Mon Sep 17 00:00:00 2001 From: Olaf Flebbe Date: Wed, 30 Sep 2009 14:55:58 +0200 Subject: [PATCH] allow for outstanding_aio_calls to be decremented --- source3/smbd/aio.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index fbfec46..158c219 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -282,6 +282,7 @@ bool schedule_aio_write_and_X(connection_struct *conn, TALLOC_FREE(aio_ex); return False; } + outstanding_aio_calls++; aio_ex->req = talloc_move(aio_ex, &req); @@ -307,7 +308,6 @@ bool schedule_aio_write_and_X(connection_struct *conn, } else { srv_defer_sign_response(aio_ex->req->mid); } - outstanding_aio_calls++; DEBUG(10,("schedule_aio_write_and_X: scheduled aio_write for file " "%s, offset %.0f, len = %u (mid = %u) " @@ -524,6 +524,7 @@ void smbd_aio_complete_mid(unsigned int mid) int ret = 0; DEBUG(10,("smbd_aio_complete_mid: mid[%u]\n", mid)); + outstanding_aio_calls--; if (!aio_ex) { DEBUG(3,("smbd_aio_complete_mid: Can't find record to " -- 1.6.0.2