Linux NFS development
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: NFS list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 0/2] asynchronous unlock on exit
Date: Mon, 31 Mar 2008 14:24:35 -0400	[thread overview]
Message-ID: <47F12C63.3030108@redhat.com> (raw)
In-Reply-To: <1206742095.15567.44.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>

Trond Myklebust wrote:
> On Fri, 2008-03-28 at 17:37 -0400, Peter Staubach wrote:
>
>   
>> However, I think that nlmclnt_unlock() needs to wait until
>> the RPC is completed.
>>     
>
> It should do that now. See the call to rpc_wait_for_completion_task() in
> nlm_async_call()
>
>   

Ahh, yes, sorry, was misreading the patch.
>>   The original problem was test12() in
>> the Connectathon testsuite, which would occasionally fail.
>> It would fail because the parent would kill the child process
>> (actually the child of the child) and immediately attempt to
>> grab the lock.  This would fail because the child hadn't
>> completed releasing the lock yet.  There were some timing
>> dependencies in test12() itself, which I eliminated, but then
>> discovered that this wouldn't solve the entire problem.  (I
>> can send you the new version of test12(), if you wish.)
>>     
>
> So, at least in 2.6.25, the call to rpc_wait_for_completion_task() will
> exit only on a fatal signal. The problem in test12() is that there is a
> 'pre-existing condition', in that the parent signalled us with a SIGINT,
> and so the signal is set upon entry to the function.
>
> IOW: we might have to perform a similar trick to what do_coredump()
> does, and clear the TIF_SIGPENDING flag. I'm not sure if that is
> sufficient, but given that we're eliminating the calls to
> recalc_sigpending(), and that there should be no such calls left in the
> RPC code, I think we're OK.

I suspect that we are okay too, but I will try this and then allow
the RHTS folks to play with it as well.  They are the ones seeing
the failures, so hopefully this will make them happy.

    Thanx!

       ps

      parent reply	other threads:[~2008-03-31 18:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 20:12 [PATCH 0/2] asynchronous unlock on exit Trond Myklebust
     [not found] ` <20080328201229.18158.52437.stgit-KPEdlmqt5P7XOazzY/2fV4TcuzvYVacciM950cveMlzk1uMJSBkQmQ@public.gmane.org>
2008-03-28 20:12   ` [PATCH 1/2] NLM/lockd: convert __nlm_async_call to use rpc_run_task() Trond Myklebust
2008-03-28 20:12   ` [PATCH 2/2] NLM: Remove the signal masking in nlmclnt_proc/nlmclnt_cancel Trond Myklebust
2008-03-28 21:37   ` [PATCH 0/2] asynchronous unlock on exit Peter Staubach
2008-03-28 22:08     ` Trond Myklebust
     [not found]       ` <1206742095.15567.44.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2008-03-31 18:24         ` Peter Staubach [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=47F12C63.3030108@redhat.com \
    --to=staubach@redhat.com \
    --cc=Trond.Myklebust@netapp.com \
    --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