OSDN Git Service

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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 13 Jun 2021 23:36:49 +0000 (19:36 -0400)
commit3731d44bba8e0116b052b1b374476c5f6dd9a456
tree1084878902aa69defad205ef8fe8db7b2ad96444
parentdd99e9f98fbf423ff6d365b37a98e8879170f17c
NFSv4: Fix an Oops in pnfs_mark_request_commit() when doing O_DIRECT

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>
fs/nfs/direct.c