Peng Tao 1ccbad9f9f nfs: fix DIO good bytes calculation
For direct read that has IO size larger than rsize, we'll split
it into several READ requests and nfs_direct_good_bytes() would
count completed bytes incorrectly by eating last zero count reply.

Fix it by handling mirror and non-mirror cases differently such that
we only count mirrored writes differently.

This fixes 5fadeb47("nfs: count DIO good bytes correctly with mirroring").

Reported-by: Jean Spector <jean@primarydata.com>
Cc: <stable@vger.kernel.org> # v3.19+
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
2015-04-23 15:05:18 -04:00
..
2013-06-08 16:20:18 -04:00
2015-04-23 15:05:18 -04:00
2012-07-30 19:06:41 -04:00
2015-02-03 11:06:34 -08:00
2015-02-03 16:01:27 -05:00
2014-11-25 16:38:32 -05:00
2012-07-30 19:06:52 -04:00
2015-01-30 20:43:30 -05:00
2015-02-11 17:14:54 -08:00