All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benny Halevy <bhalevy@panasas.com>
To: Zhang Jingwang <zhangjingwang-U4AKAne5IzAR5TUyvShJeg@public.gmane.org>
Cc: linux-nfs@vger.kernel.org, Fred Isaman <iisaman@netapp.com>
Subject: Re: [PATCH] pnfs: set pnfs_blksize before calling set_pnfs_layoutdriver
Date: Wed, 12 May 2010 09:55:19 +0300	[thread overview]
Message-ID: <4BEA50D7.5060509@panasas.com> (raw)
In-Reply-To: <20100512053021.GA7476-nK6E9TRyOkVSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>

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 */
>  }


      parent reply	other threads:[~2010-05-12  6:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BEA50D7.5060509@panasas.com \
    --to=bhalevy@panasas.com \
    --cc=iisaman@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=zhangjingwang-U4AKAne5IzAR5TUyvShJeg@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.