From: Peng Tao Date: Mon, 19 Jan 2015 04:41:16 +0000 (+0800) Subject: nfs: count DIO good bytes correctly with mirroring X-Git-Tag: fixes-v4.0-rc1~136^2~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fadeb47dcc5c30d4b6cf481b4a78689eab59443;p=pandora-kernel.git 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 Signed-off-by: Peng Tao --- Reading git-diff-tree failed