From: Rusty Russell <rusty@rustcorp.com.au>
To: "Matti Linnanvuori" <mattilinn@gmail.com>
Cc: "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: Thu, 15 May 2008 10:30:18 +1000 [thread overview]
Message-ID: <200805151030.18959.rusty@rustcorp.com.au> (raw)
In-Reply-To: <ca0148c30805130831h11fe0ca0qf501bd07d1141940@mail.gmail.com>
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?
Thanks,
Rusty.
PS. Patch fixed up and applied.
next parent reply other threads:[~2008-05-15 0:30 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 ` Rusty Russell [this message]
2008-05-16 12:21 ` [patch] doc: add a chapter about trylock functions [Bug 9011] Peter Zijlstra
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=200805151030.18959.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattilinn@gmail.com \
--cc=mingo@elte.hu \
--cc=randy.dunlap@oracle.com \
/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