diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-04-09 23:02:16 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-04-23 15:05:18 -0400 |
commit | 1ccbad9f9f9bd36db26a10f0b17fbaf12b3ae93a (patch) | |
tree | 6bf27072c4383cffc77e15c553d6b294394a472e /net/rfkill/rfkill-gpio.c | |
parent | ea96d1ecbe4fcb1df487d99309d3157b4ff5fc02 (diff) | |
download | talos-op-linux-1ccbad9f9f9bd36db26a10f0b17fbaf12b3ae93a.tar.gz talos-op-linux-1ccbad9f9f9bd36db26a10f0b17fbaf12b3ae93a.zip |
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>
Diffstat (limited to 'net/rfkill/rfkill-gpio.c')
0 files changed, 0 insertions, 0 deletions