Skip to content
Commit 5fadeb47 authored by Peng Tao's avatar Peng Tao Committed by Tom Haynes
Browse files

nfs: count DIO good bytes correctly with mirroring



When resending to MDS, we might resend multiple mirroring
requests to MDS. As a result, nfs_direct_good_bytes() ends
up counting bytes multiple times, causing application to
get wrong return results in read/write syscalls.

Fix it by tracking start of a dreq and checking the range of
pgio header.

Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: default avatarPeng Tao <tao.peng@primarydata.com>
parent aa8a45ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment