[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.00.0804151023350.2879@woody.linux-foundation.org>
Date: Tue, 15 Apr 2008 10:26:21 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Andi Kleen <andi@...stfloor.org>
cc: Peter Zijlstra <peterz@...radead.org>,
Bart Van Assche <bart.vanassche@...il.com>,
Roland Dreier <rdreier@...co.com>, Ingo Molnar <mingo@...e.hu>,
Matthew Wilcox <matthew@....cx>,
Ingo Oeser <ioe-lkml@...eria.de>,
Daniel Walker <dwalker@...sta.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Replace completions with semaphores
On Tue, 15 Apr 2008, Andi Kleen wrote:
>
> For normal locks. But if you have N number of outstanding
> events you need to wait for the semaphore is the right primitive.
Right. Except if you were to just use completions instead (which could be
trivially extended to do that).
MUCH more trivial than this complex series.
(You may think that the "Replace completions with semaphores" patch is not
very complicated, but it *is* - it depends very intimately on the big
patch-series that basically turns semaphores into what completions are
now!)
In other words, what makes me not like this is hat we first turn
semaphores into the generic code (which is largely what completions were:
just a special case of the generic semaphores!) and then turns completions
into these things. That just doesn't make any sense to me!
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists