diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-16 18:22:10 +0300 |
|---|---|---|
| committer | Anna Schumaker <anna.schumaker@hammerspace.com> | 2026-11-09 15:04:52 -0500 |
| commit | eab627dcd18a18a44a2cbee47df3058d3637ba0d (patch) | |
| tree | e48d7a8d751f8f31781e006a5ac18faad894daca /rust/kernel/alloc | |
| parent | 7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff) | |
NFSv4.1: retain MDS I/O until both thresholds are met
When both size and I/O thresholds are configured,
pnfs_within_mdsthreshold() uses size && io to decide whether to
keep I/O on the MDS. Both variables indicate an unmet threshold,
so reaching only one threshold returns false and may trigger
pNFS layout acquisition while the other threshold remains unmet.
Use logical OR instead of AND to stay with MDS I/O until both
thresholds are met, as recommended by RFC 8881 Section 5.12.6.
The new RFC contains the same threshold selection rule as RFC
5661 which is referenced in function comment.
Fixes: d23d61c8d351 ("NFSv4.1 test the mdsthreshold hint parameters")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
