BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
DEBUG(10, ("closing with aio %u requests pending\n",
fsp->num_aio_requests));
+ /*
+ * Flag the file as close in progress.
+ * This will prevent any more IO being
+ * done on it.
+ */
+ fsp->closing = true;
+
/*
* We depend on the aio_extra destructor to take care of this
* close request once fsp->num_aio_request drops to 0.