]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC reverting 2f64a3af0d80 ("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)
commit1ceb9e1a6d2e74b70d77f8f289b708b9dfb992dd
tree1079ff6ad5c99469b4b16470dbc7e25da40c184c
parent023956779ce93b9e159c2af4b05637a1c3e996f1
SUNRPC reverting 2f64a3af0d80 ("NFSv4 fix CLOSE not waiting for direct IO compeletion")

Reverting commit 2f64a3af0d80 "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