summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_flush.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-11-12 13:07:21 -0800
committerJeremy Allison <jra@samba.org>2015-11-13 21:36:19 +0100
commitc83ecbb51bddb1642eb4ee10c24f6b721af66c45 (patch)
tree7a7df519ea914c738849051b2df15d6861ce4f14 /source3/smbd/smb2_flush.c
parent5327c6004997e6b3cf235a1a292cc8f2ea1ff698 (diff)
downloadsamba-c83ecbb51bddb1642eb4ee10c24f6b721af66c45.tar.gz
s3: smbd: Remove checks causing fallback to sync on pread/pwrite/fsync.
Rely on pthreadpool queueing instead of falling back. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/smb2_flush.c')
-rw-r--r--source3/smbd/smb2_flush.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/smbd/smb2_flush.c b/source3/smbd/smb2_flush.c
index d26707acc0c..00b05354a2e 100644
--- a/source3/smbd/smb2_flush.c
+++ b/source3/smbd/smb2_flush.c
@@ -162,20 +162,6 @@ static struct tevent_req *smbd_smb2_flush_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- if (get_outstanding_aio_calls() >= get_aio_pending_size()) {
- /* No more allowed aio. Synchronous flush. */
- NTSTATUS status = sync_file(smbreq->conn, fsp, true);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(5,("sync_file for %s returned %s\n",
- fsp_str_dbg(fsp),
- nt_errstr(status)));
- tevent_req_nterror(req, status);
- return tevent_req_post(req, ev);
- }
- tevent_req_done(req);
- return tevent_req_post(req, ev);
- }
-
ret = flush_write_cache(fsp, SAMBA_SYNC_FLUSH);
if (ret == -1) {
tevent_req_nterror(req, map_nt_error_from_unix(errno));