public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Andy Adamson <andros@netapp.com>
Cc: Ben Greear <greearb@candelatech.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-nfs@vger.kernel.org
Subject: Re: Error mounting FC8 NFS server with 2.6.31-rc3 NFSv4 client.
Date: Wed, 22 Jul 2009 16:20:13 -0400	[thread overview]
Message-ID: <1248294013.5234.35.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <A7103385-4525-4B7B-9CBA-5DBCB99A98F0@netapp.com>

On Wed, 2009-07-22 at 15:49 -0400, Andy Adamson wrote:
> On Jul 21, 2009, at 5:17 PM, Trond Myklebust wrote:
> > Note that there is a bug remaining inside nfs4_init_session(): we
> > shouldn't be copying the rsize/wsize into the nfs_client if the latter
> > was already initialised.
> 
> The rsize/wsize is copied into the session prior to the create_session  
> call (triggered by the state management code you moved), and is used  
> for session negotiation. At this point the nfs_client cl_cons_state is  
> set to NFS_CS_SESSION_INITING (see nfs4_alloc_session), so the  
> nfs_client is not initialized.  The cl_cons_state is set to  
> NFS_CS_READY after a successful create_session call.

The call to nfs4_init_session() is in nfs4_create_server(). It can be
called several times _after_ the nfs_client has been initialised when
you mount more than one partition from the same NFS server.

If that is the case, and if you use different rsize/wsize values on
those different mounts, then you will end up clobbering the values of
fc_attrs.max_rqst_sz, and fc_attrs.max_resp_sz, having set them to the
wsize/rsize that was set by the very last mount call.

AFAICS, what you _should_ be doing in nfs4_init_session, is something
like

	if (clp->cl_session->fc_attrs.max_rqst_sz < server->wsize)
		clp->cl_session->fc_attrs.max_rqst_sz = server->wsize;

Trond


  reply	other threads:[~2009-07-22 20:20 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A64EB1F.4000602@candelatech.com>
2009-07-21 12:15 ` Error mounting FC8 NFS server with 2.6.31-rc3 NFSv4 client Trond Myklebust
     [not found]   ` <1248178527.5222.0.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 16:49     ` Ben Greear
2009-07-21 17:12       ` Trond Myklebust
     [not found]         ` <1248196339.21343.8.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 17:36           ` Ben Greear
2009-07-21 17:59             ` Trond Myklebust
     [not found]               ` <1248199140.21343.17.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 18:01                 ` Ben Greear
2009-07-21 18:28                   ` Trond Myklebust
     [not found]                     ` <1248200897.21343.19.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 18:32                       ` Ben Greear
2009-07-21 18:54                         ` Trond Myklebust
     [not found]                           ` <1248202462.21343.21.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 19:57                             ` Frans Pop
2009-07-21 21:17                         ` Trond Myklebust
     [not found]                           ` <1248211050.21343.38.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 21:48                             ` Trond Myklebust
     [not found]                               ` <1248212939.5034.1.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-21 21:50                                 ` Ben Greear
2009-07-22 19:49                             ` Andy Adamson
2009-07-22 20:20                               ` Trond Myklebust [this message]
     [not found]                                 ` <1248294013.5234.35.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-22 21:32                                   ` Andy Adamson
2009-07-22 21:47                                     ` Trond Myklebust
     [not found]                                       ` <1248299236.9202.3.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-22 22:03                                         ` Andy Adamson
2009-07-22 22:17                                           ` Trond Myklebust
     [not found]                                             ` <1248301062.9202.11.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-22 22:26                                               ` Andy Adamson
2009-07-21 19:23                       ` Frans Pop
     [not found]                         ` <200907212123.08790.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-21 19:54                           ` Trond Myklebust
2009-07-21 20:24                             ` Frans Pop
2009-07-21 17:49       ` Frans Pop
2009-07-20 21:43 Ben Greear
2009-07-20 23:02 ` Ben Greear

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=1248294013.5234.35.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@fys.uio.no \
    --cc=andros@netapp.com \
    --cc=greearb@candelatech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox