Re: [PATCH] Introduce down_try() so we can move away from down_trylock()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, August 1, 2008 - 10:26 am

On Tue, 29 Jul 2008, Rusty Russell wrote:

I hate that name. Everybody else uses "xxx_trylock()", now you introduce a 
short version of that that just has the same return value as everybody 
else except for semaphores that admittedly were odd.

Also, all actual _users_ of down_trylock() seem to be prime candidates for 
turning into mutexes anyway - with the _possible_ exception of the console 
semaphore which has problems with the mutex debugging code.


The transition to WHAT? To crap?

There is no need to introduce yet another temporary thing just to make 
things even _more_ confusing.

Yeah, I'm grumpy. I'm always pretty grumpy, but I'm trying to go through 
some backlog where I had been going "hmm, why would I do this", and this 
one wasn't the only one where my reaction was "if I pull/apply this, the 
end result is worse".

Guys, some quality control and critical thinking, please.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Introduce down_try() so we can move away from ..., Linus Torvalds, (Fri Aug 1, 10:26 am)