Weston Andros Adamson
b57ff1303a
pnfs: pass ds_commit_idx through the commit path
...
Pass ds_commit_idx through the nfs commit path. It's used to select
the commit bucket when using pnfs and is ignored when not using pnfs.
Several functions had to be changed: nfs_retry_commit,
nfs_mark_request_commit, pnfs_mark_request_commit and the pnfs layout
driver .mark_request_commit functions.
Signed-off-by: Tom Haynes <loghyr@primarydata.com >
2015-02-03 11:06:45 -08:00
Peng Tao
c220106fb4
nfs/filelayout: use pnfs_error_mark_layout_for_return
...
Instead of calling layoutreturn directly, call pnfs_error_mark_layout_for_return
to mark layouts for return and let generic code return layout when
layout segments are freed.
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
Conflicts:
fs/nfs/filelayout/filelayout.c
2015-02-03 11:06:43 -08:00
Peng Tao
c36aae9ad9
nfs: allow different protocol in nfs_initiate_commit
...
pnfs flexfile layout client may want to use NFSv3 ops rather
than the default MDS v4 ops.
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:35 -08:00
Peng Tao
5f01d95394
nfs41: create NFSv3 DS connection if specified
...
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:35 -08:00
Peng Tao
30626f9c32
nfs41: allow LD to choose DS connection version/minor_version
...
flexfile layout may need to set such when making DS connections.
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:34 -08:00
Peng Tao
064172f345
nfs41: allow LD to choose DS connection auth flavor
...
flexfile layout may use different auth flavor as specified by MDS.
Reviewed-by: Jeff Layton <jlayton@primarydata.com >
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:33 -08:00
Peng Tao
7405f9e195
nfs41: pull nfs4_ds_connect from file layout to generic pnfs
...
It can be reused by flexfiles layout client.
Reviewed-by: Jeff Layton <jlayton@primarydata.com >
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:32 -08:00
Peng Tao
6b7f3cf963
nfs41: pull decode_ds_addr from file layout to generic pnfs
...
It can be reused by flexfile layout.
Reviewed-by: Jeff Layton <jlayton@primarydata.com >
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:32 -08:00
Peng Tao
875ae0694b
nfs41: pull data server cache from file layout to generic pnfs
...
Also pull nfs4_pnfs_ds_addr and nfs4_pnfs_ds to generic pnfs.
They can all be reused by flexfile layout as well.
Reviewed-by: Jeff Layton <jlayton@primarydata.com >
Signed-off-by: Peng Tao <tao.peng@primarydata.com >
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com >
2015-02-03 11:06:32 -08:00
Tom Haynes
085d1e33a6
pnfs: Do not grab the commit_info lock twice when rescheduling writes
...
Acked-by: Jeff Layton <jlayton@primarydata.com >
Signed-off-by: Tom Haynes <loghyr@primarydata.com >
2015-02-03 11:06:31 -08:00
Tom Haynes
f54bcf2ece
pnfs: Prepare for flexfiles by pulling out common code
...
The flexfilelayout driver will share some common code
with the filelayout driver. This set of changes refactors
that common code out to avoid any module depenencies.
Signed-off-by: Tom Haynes <loghyr@primarydata.com >
2015-02-03 11:06:31 -08:00