summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-10-16 18:22:10 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:04:52 -0500
commiteab627dcd18a18a44a2cbee47df3058d3637ba0d (patch)
treee48d7a8d751f8f31781e006a5ac18faad894daca /rust/kernel/alloc
parent7475ea8b58616b33c04afb976cf0fbaad9dd63fb (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