diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-07-22 21:12:20 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-07-23 22:28:59 +0300 |
commit | 69d966510d9f5de81588b37d23a9ee8ccc477b23 (patch) | |
tree | d115d8b86c52e31ead95c9021223d67662998a71 /lib/locking-selftest-wlock-hardirq.h | |
parent | 55051c0ced7d322a169f8603d306ee6ec079f8ae (diff) | |
download | linux-69d966510d9f5de81588b37d23a9ee8ccc477b23.tar.xz |
nfs: only issue commit in DIO codepath if we have uncommitted data
Currently, we try to determine whether to issue a commit based on
nfs_write_need_commit which looks at the current verifier. In the case
where we got a short write and then tried to follow it up with one that
failed, the verifier can't be trusted.
What we really want to know is whether the pgio request had any
successful writes that came back as UNSTABLE. Add a new flag to the pgio
request, and use that to indicate that we've had a successful unstable
write. Only issue a commit if that flag is set.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'lib/locking-selftest-wlock-hardirq.h')
0 files changed, 0 insertions, 0 deletions