]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: More O_DIRECT accounting fixes for error paths
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:34:39 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:30 +0000 (14:56 +0200)
commit1f49386d67792424028acfe781d466b010f8fa3f
treec4aee5bff95a405a8a7746db376ca009dac0d722
parent4d98038e5bd939bd13cc4e602dfe60cd5110efa8
NFS: More O_DIRECT accounting fixes for error paths

[ Upstream commit 8982f7aff39fb526aba4441fff2525fcedd5e1a3 ]

If we hit a fatal error when retransmitting, we do need to record the
removal of the request from the count of written bytes.

Fixes: 031d73ed768a ("NFS: Fix O_DIRECT accounting of number of bytes read/written")
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