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

Reverting commit d03727b248d0 "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