diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-25 21:51:03 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-25 21:51:03 -0400 |
commit | d02d81efc7564b4d5446a02e0214a164cf00b1f3 (patch) | |
tree | c034d37b54d828e10249433b6ad58dcc5252f500 /fs/nfs/nfs4trace.h | |
parent | ebbe788731cb52a0ef69cf962813b302ef5b399e (diff) | |
download | lwn-d02d81efc7564b4d5446a02e0214a164cf00b1f3.tar.gz lwn-d02d81efc7564b4d5446a02e0214a164cf00b1f3.zip |
NFS: Don't loop forever in nfs_do_recoalesce()
If __nfs_pageio_add_request() fails to add the request, it will return
with either desc->pg_error < 0, or mirror->pg_recoalesce will be set, so
we are guaranteed either to exit the function altogether, or to loop.
However if there is nothing left in mirror->pg_list to coalesce, we must
exit, so make sure that we clear mirror->pg_recoalesce every time we
loop.
Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 70536bf4eb07 ("NFS: Clean up reset of the mirror accounting variables")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs4trace.h')
0 files changed, 0 insertions, 0 deletions