From: Peter Zijlstra <peterz@infradead.org>
To: Leon Woestenberg <leon.woestenberg@gmail.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Matthew Wilcox <willy@linux.intel.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Rename DECLARE_MUTEX to DEFINE_SEMAPHORE
Date: Sun, 26 Oct 2008 15:41:03 +0100 [thread overview]
Message-ID: <1225032063.32713.17.camel@twins> (raw)
In-Reply-To: <c384c5ea0810260711l1103a103j6c3739fe3a8d9e74@mail.gmail.com>
On Sun, 2008-10-26 at 15:11 +0100, Leon Woestenberg wrote:
> Hello,
>
> On Sun, Oct 26, 2008 at 2:39 PM, Peter Zijlstra <peterz@infradead.org> wrote:
> > On Sun, 2008-10-26 at 13:06 +0100, Marcin Slusarz wrote:
> >> DECLARE_MUTEX is doubly misleading name (it actually _defines_ struct
> >> _semaphore_ initialized to 1) and it can be confused with DEFINE_MUTEX
> >> (which defines real struct mutex). Rename it.
> >
> > I'd prefer DEFINE_BINARY_SEM or somesuch
> >
> But it is not a binary semaphore, or is it?
> #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)
I thought that 1 made it a binary sem.
next prev parent reply other threads:[~2008-10-26 14:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-26 12:06 [PATCH] Rename DECLARE_MUTEX to DEFINE_SEMAPHORE Marcin Slusarz
2008-10-26 13:39 ` Peter Zijlstra
2008-10-26 14:11 ` Leon Woestenberg
2008-10-26 14:41 ` Peter Zijlstra [this message]
2008-10-26 15:20 ` Leon Woestenberg
2008-10-26 15:23 ` Marcin Slusarz
2008-10-26 16:41 ` Christoph Hellwig
2008-10-29 21:16 ` Marcin Slusarz
2008-10-29 21:22 ` Christoph Hellwig
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=1225032063.32713.17.camel@twins \
--to=peterz@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=leon.woestenberg@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.slusarz@gmail.com \
--cc=torvalds@linux-foundation.org \
--cc=willy@linux.intel.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