* [PATCH] pnfs: set pnfs_blksize before calling set_pnfs_layoutdriver
@ 2010-05-12 5:30 Zhang Jingwang
[not found] ` <20100512053021.GA7476-nK6E9TRyOkVSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Jingwang @ 2010-05-12 5:30 UTC (permalink / raw)
To: linux-nfs; +Cc: bhalevy, iisaman
For block/volume layout driver, set_pnfs_layoutdriver will call
initialize_mountpoint() which will check the value of pnfs_blksize.
Signed-off-by: Zhang Jingwang <zhangjingwang@nrchpc.ac.cn>
---
fs/nfs/client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index dddc75c..94a9be9 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -880,9 +880,9 @@ static void nfs4_init_pnfs(struct nfs_server *server, struct nfs_fh *mntfh, stru
if (nfs4_has_session(clp) &&
(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) {
+ server->pnfs_blksize = fsinfo->blksize;
set_pnfs_layoutdriver(server, mntfh, fsinfo->layouttype);
pnfs_set_ds_iosize(server);
- server->pnfs_blksize = fsinfo->blksize;
}
#endif /* CONFIG_NFS_V4_1 */
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pnfs: set pnfs_blksize before calling set_pnfs_layoutdriver
[not found] ` <20100512053021.GA7476-nK6E9TRyOkVSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>
@ 2010-05-12 6:55 ` Benny Halevy
0 siblings, 0 replies; 2+ messages in thread
From: Benny Halevy @ 2010-05-12 6:55 UTC (permalink / raw)
To: Zhang Jingwang; +Cc: linux-nfs, Fred Isaman
On 2010-05-12 08:30, Zhang Jingwang wrote:
> For block/volume layout driver, set_pnfs_layoutdriver will call
> initialize_mountpoint() which will check the value of pnfs_blksize.
Looks good.
Thanks!
Benny
>
> Signed-off-by: Zhang Jingwang <zhangjingwang-U4AKAne5IzAR5TUyvShJeg@public.gmane.org>
> ---
> fs/nfs/client.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
> index dddc75c..94a9be9 100644
> --- a/fs/nfs/client.c
> +++ b/fs/nfs/client.c
> @@ -880,9 +880,9 @@ static void nfs4_init_pnfs(struct nfs_server *server, struct nfs_fh *mntfh, stru
>
> if (nfs4_has_session(clp) &&
> (clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) {
> + server->pnfs_blksize = fsinfo->blksize;
> set_pnfs_layoutdriver(server, mntfh, fsinfo->layouttype);
> pnfs_set_ds_iosize(server);
> - server->pnfs_blksize = fsinfo->blksize;
> }
> #endif /* CONFIG_NFS_V4_1 */
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-12 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 5:30 [PATCH] pnfs: set pnfs_blksize before calling set_pnfs_layoutdriver Zhang Jingwang
[not found] ` <20100512053021.GA7476-nK6E9TRyOkVSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>
2010-05-12 6:55 ` Benny Halevy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.