public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Mi Jinlong <mijinlong@cn.fujitsu.com>
To: NFSv3 list <linux-nfs@vger.kernel.org>,
	"Trond.Myklebust" <trond.myklebust@fys.uio.no>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	Chuck Lever <chuck.lever@oracle.com>
Subject: [RFC] After sending NLM request, client don't wait reply, instead send FIN
Date: Wed, 14 Apr 2010 18:19:36 +0800	[thread overview]
Message-ID: <4BC596B8.2020808@cn.fujitsu.com> (raw)

Hi all, 

When testing NFSv3's lock service at RHEL with kernel 2.6.31, I get a 
strange result like that: client send NLM request success, but don't 
wait reply, instead send FIN request; server receive NLM request success,
but don't replay.

Test process:

             client                         server
 1. mount -t nfs host:/tmp /mnt (OK)
 2.       open file             (OK)
 3.       lock file             (OK)
 4.       unlokc file           (OK)
 5.                                      service nfs stop (OK)
 6.       lock file again      (hang)

 7.             <-----------   waiting 170s   ------------> 
 8.                                      service nfs start (OK)
 9.       step6's lock return -88

 And, I get the tcpdump as below:
    a. step1 ~ step4: It's regular;
    b. step5 ~ step8: client send portmap request, and get PROGRAM_NOT_AVAILABLE
                      error reply.
    c. step8 ~ step9: (the important part)
                 c.1: portmap success.
                 c.2: <NLM>
                      client  -------- SYN ---------> server 
                              <------- SYN ACK-------
                              -------- ACK --------->
                              ------ LOCK CALL ----->
                              <-------- ACK ---------
                              ------- FIN ACK ------>
                              <------ FIN ACK -------
                              --------- ACK -------->

                c.3: client's user space get error -88(Socket operation on non-socket).

 Question:
   1. c.3, user space get error -88, the LOCK request should not send success, 
      but as c.2 show, the client's LOCK request have send success.
      Is there some reason ?

   2. When traceing the kernel, I find kernel send two LOCK request at step8~9,
      the first one send success(but can't get reply), the second one send fail 
      with error -88.
      IMO, at step8~9, after server's nfs start, and client get portmap success,
      there will be only one LOCK request task at client's kernel, and send only 
      one LOCK request.
      What cause client send two LOCK request ?

  Waiting for your reply.

thanks,
Mi Jinlong


                 reply	other threads:[~2010-04-14 10:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4BC596B8.2020808@cn.fujitsu.com \
    --to=mijinlong@cn.fujitsu.com \
    --cc=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /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