]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Flush outstanding writes when an fd is closed
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:45 +0000 (16:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:24 +0000 (10:07 +0100)
commit7286fad1570444b924568b13994843ab28b55dd4
tree4d8b345c260ffa14a76dc02f365e99187f8332ec
parenteaaad7646d3de73ca30653e635261827242be124
afs: Flush outstanding writes when an fd is closed

[ Upstream commit 58fed94dfb17e89556b5705f20f90e5b2971b6a1 ]

Flush outstanding writes in afs when an fd is closed.  This is what NFS and
CIFS do.

Reported-by: Marc Dionne <marc.c.dionne@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/afs/file.c
fs/afs/internal.h
fs/afs/write.c