]> Git Repo - linux.git/commit
nfs: count DIO good bytes correctly with mirroring
authorPeng Tao <[email protected]>
Mon, 19 Jan 2015 04:41:16 +0000 (12:41 +0800)
committerTom Haynes <[email protected]>
Tue, 3 Feb 2015 19:06:52 +0000 (11:06 -0800)
commit5fadeb47dcc5c30d4b6cf481b4a78689eab59443
tree61144dbb7c04d5ddae49174c122ef1c686712b06
parentaa8a45ee974dfe3ffe290daaf5db457afae56fde
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 <[email protected]>
Signed-off-by: Peng Tao <[email protected]>
fs/nfs/direct.c
This page took 0.05388 seconds and 4 git commands to generate.