From: Peng Tao Date: Mon, 10 Nov 2014 00:35:35 +0000 (+0800) Subject: nfs: add nfs_pgio_current_mirror helper X-Git-Tag: fixes-v4.0-rc1~136^2~27^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d635f14a544c2b3ca870d2c7349b41160496d2;p=pandora-kernel.git nfs: add nfs_pgio_current_mirror helper Let it return current nfs_pgio_mirror in use depending on pg_mirror_count. For read, we always use pg_mirrors[0], so this effectively gives us freedom to use pg_mirror_idx to track the actual mirror to read from through out the IO stack. Signed-off-by: Peng Tao Signed-off-by: Tom Haynes --- Reading git-diff-tree failed