]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC reverting 03d408abef3b ("NFSv4 fix CLOSE not waiting for direct IO compeletion")
authorOlga Kornievskaia <kolga@netapp.com>
Wed, 15 Jul 2020 17:04:15 +0000 (13:04 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Jul 2020 18:47:38 +0000 (14:47 -0400)
commitfa78d704d0e62a385ae624662fcdb90d923059e9
tree1079ff6ad5c99469b4b16470dbc7e25da40c184c
parent91e7ca0e12c84a49a52933bf4619fe16d472f713
SUNRPC reverting 03d408abef3b ("NFSv4 fix CLOSE not waiting for direct IO compeletion")

Reverting commit 03d408abef3b "NFSv4 fix CLOSE not waiting for
direct IO compeletion". This patch made it so that fput() by calling
inode_dio_done() in nfs_file_release() would wait uninterruptably
for any outstanding directIO to the file (but that wait on IO should
be killable).

The problem the patch was also trying to address was REMOVE returning
ERR_ACCESS because the file is still opened, is supposed to be resolved
by server returning ERR_FILE_OPEN and not ERR_ACCESS.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/direct.c
fs/nfs/file.c