diff options
author | Steve French <sfrench@us.ibm.com> | 2009-02-21 22:17:43 +0100 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-03-12 02:36:20 +0100 |
commit | b298f223559e0205244f553ceef8c7df3674da74 (patch) | |
tree | a65cb2f64d1b999b7b573857a8b33bbb83ff97af /mm | |
parent | Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/air... (diff) | |
download | linux-b298f223559e0205244f553ceef8c7df3674da74.tar.xz linux-b298f223559e0205244f553ceef8c7df3674da74.zip |
[CIFS] Send SMB flush in cifs_fsync
In contrast to the now-obsolete smbfs, cifs does not send SMB_COM_FLUSH
in response to an explicit fsync(2) to guarantee that all volatile data
is written to stable storage on the server side, provided the server
honors the request (which, to my knowledge, is true for Windows and
Samba with 'strict sync' enabled).
This patch modifies the cifs_fsync implementation to restore the
fsync-behavior of smbfs by triggering SMB_COM_FLUSH after sending
outstanding data on the client side to the server.
Signed-off-by: Horst Reiterer <horst.reiterer@gmail.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions