Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes

For flexfiles driver, we might choose to read from mirror index other
than 0 while mirror_count is always 1 for read.

Reported-by: Jean Spector <jean@primarydata.com>
Cc: <stable@vger.kernel.org> # v3.19+
Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by

Peng Tao and committed by
Trond Myklebust
05f54903 1ccbad9f

-2
-2
fs/nfs/direct.c
··· 129 129 int i; 130 130 ssize_t count; 131 131 132 - WARN_ON_ONCE(hdr->pgio_mirror_idx >= dreq->mirror_count); 133 - 134 132 if (dreq->mirror_count == 1) { 135 133 dreq->mirrors[hdr->pgio_mirror_idx].count += hdr->good_bytes; 136 134 dreq->count += hdr->good_bytes;