NFSv4: Fix an Oops in pnfs_mark_request_commit() when doing O_DIRECT
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 11 Jun 2021 17:40:55 +0000 (13:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:50 +0000 (16:05 +0200)
commit5c7ef8a3705542136a1e19b070e951f0730b2153
tree1b02a95c318213225c4f7d3fa2467fcfd1f5a533
parentff4023d0194263a0827c954f623c314978cf7ddd
NFSv4: Fix an Oops in pnfs_mark_request_commit() when doing O_DIRECT

[ Upstream commit 3731d44bba8e0116b052b1b374476c5f6dd9a456 ]

Fix an Oopsable condition in pnfs_mark_request_commit() when we're
putting a set of writes on the commit list to reschedule them after a
failed pNFS attempt.

Fixes: 9c455a8c1e14 ("NFS/pNFS: Clean up pNFS commit operations")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/direct.c