]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix error handling for O_DIRECT write scheduling
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:34:37 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:30 +0000 (14:56 +0200)
commitf16fd0b11f0f4d41846b5102b1656ea1fc9ac7a0
tree28f3827e49bb557caa699c2e6239b093a2d3b12c
parentd23900f974e0fb995b36ef47283a5aa74ca25f51
NFS: Fix error handling for O_DIRECT write scheduling

[ Upstream commit 954998b60caa8f2a3bf3abe490de6f08d283687a ]

If we fail to schedule a request for transmission, there are 2
possibilities:
1) Either we hit a fatal error, and we just want to drop the remaining
   requests on the floor.
2) We were asked to try again, in which case we should allow the
   outstanding RPC calls to complete, so that we can recoalesce requests
   and try again.

Fixes: d600ad1f2bdb ("NFS41: pop some layoutget errors to application")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/direct.c