summaryrefslogtreecommitdiff
path: root/source3/include/vfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/vfs.h')
-rw-r--r--source3/include/vfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h
index c4ef5a3046..c5b896db0f 100644
--- a/source3/include/vfs.h
+++ b/source3/include/vfs.h
@@ -251,6 +251,15 @@ typedef struct files_struct {
unsigned num_aio_requests;
struct tevent_req **aio_requests;
+
+ /*
+ * If a close request comes in while we still have aio_requests
+ * around, we need to hold back the close. When all aio_requests are
+ * done, the aio completion routines need tevent_wait_done() on
+ * this. A bit ugly, but before we have close_file() fully async
+ * possibly the simplest approach. Thanks, Jeremy for the idea.
+ */
+ struct tevent_req *deferred_close;
} files_struct;
struct vuid_cache_entry {