]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: only reset desc->pg_mirror_idx when mirroring is supported
authorPeng Tao <tao.peng@primarydata.com>
Mon, 10 Nov 2014 00:35:34 +0000 (08:35 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:47 +0000 (11:06 -0800)
commit817e8aacee8dcd613bd2d0993b0b483ea82b0b65
tree94817ece21bb4b4b2933579417cd2da47d71c684
parentf9f1e31e5452d1a4696e8002e5aded57680a47fd
nfs: only reset desc->pg_mirror_idx when mirroring is supported

so that we don't reset desc->pg_mirror_idx for read unnecessarily.
Remove WARN_ON_ONCE from __nfs_pageio_add_request to allow LD to
set pg_mirror_idx for read where pg_mirror_count is always 1.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
fs/nfs/internal.h
fs/nfs/pagelist.c