smbd: Issue fsync for SMB2 FLUSH asynchronously
authorChristof Schmitt <cs@samba.org>
Wed, 11 Nov 2015 20:31:15 +0000 (13:31 -0700)
committerChristof Schmitt <cs@samba.org>
Fri, 13 Nov 2015 00:44:21 +0000 (01:44 +0100)
commitc737fae5f79fa76118a914940e59408fd329037a
tree73fa8b7a6426d001a948430439976aae2dbc282c
parent17f4110c47d53148979a3617e80b29fe3bd41efc
smbd: Issue fsync for SMB2 FLUSH asynchronously

SMB2 FLUSH mainly calls fsync and there is already code in place to
handle fsync asynchronously, so use the asynchronous code path for SMB2
FLUSH. This avoids a SMB2 FLUSH stalling other requests processing.

Signed-off-by: Christof Schmitt <cs@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_flush.c