The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Matti Linnanvuori <mattilinn@gmail.com>,
	Randy Dunlap <randy.dunlap@oracle.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch] doc: add a chapter about trylock functions [Bug 9011]
Date: Fri, 16 May 2008 14:21:25 +0200	[thread overview]
Message-ID: <1210940485.7886.29.camel@twins> (raw)
In-Reply-To: <200805151030.18959.rusty@rustcorp.com.au>

On Thu, 2008-05-15 at 10:30 +1000, Rusty Russell wrote:
> On Wednesday 14 May 2008 01:31:47 Matti Linnanvuori wrote:
> > +    <function>mutex_trylock()</function> does not suspend your task
> > +    but returns non-zero if it could lock the mutex on the first try
> > +    or 0 if not. This function cannot be safely used in hardware or
> > +    software interrupt contexts despite not sleeping.
> 
> I know this is what the documentation says, but I can't see why.  Ingo?

because who would then own the lock?


  reply	other threads:[~2008-05-16 12:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ca0148c30805130831h11fe0ca0qf501bd07d1141940@mail.gmail.com>
2008-05-15  0:30 ` [patch] doc: add a chapter about trylock functions [Bug 9011] Rusty Russell
2008-05-16 12:21   ` Peter Zijlstra [this message]
2008-05-04  7:32 Matti Linnanvuori

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=1210940485.7886.29.camel@twins \
    --to=peterz@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mattilinn@gmail.com \
    --cc=mingo@elte.hu \
    --cc=randy.dunlap@oracle.com \
    --cc=rusty@rustcorp.com.au \
    /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