]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix O_DIRECT locking issues
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:34:38 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:30 +0000 (14:56 +0200)
commit4d98038e5bd939bd13cc4e602dfe60cd5110efa8
tree1d4d0f2658dc0440e31b7adbeef47b0f54cb88c5
parentf16fd0b11f0f4d41846b5102b1656ea1fc9ac7a0
NFS: Fix O_DIRECT locking issues

[ Upstream commit 7c6339322ce0c6128acbe36aacc1eeb986dd7bf1 ]

The dreq fields are protected by the dreq->lock.

Fixes: 954998b60caa ("NFS: Fix error handling for O_DIRECT write scheduling")
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