]> git.karo-electronics.de Git - linux-beck.git/commit
nfs: add nfs_pgio_current_mirror helper
authorPeng Tao <tao.peng@primarydata.com>
Mon, 10 Nov 2014 00:35:35 +0000 (08:35 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:48 +0000 (11:06 -0800)
commit48d635f14a544c2b3ca870d2c7349b41160496d2
tree3482ecc1445a13fb60941213930078da302869ff
parent47af81f29556a45493e5c87289c3c16ce911096c
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 <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
fs/nfs/internal.h
fs/nfs/objlayout/objio_osd.c
fs/nfs/pagelist.c
fs/nfs/pnfs.c