login
Header Space

 
 

Re: [RFC] mmiotrace full patch, preview 1

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Hellwig <hch@...>
Cc: Andrew Morton <akpm@...>, Pekka Paalanen <pq@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>, Arjan van de Ven <arjan@...>, Steven Rostedt <rostedt@...>, Peter Zijlstra <a.p.zijlstra@...>, Andy Whitcroft <apw@...>
Date: Monday, February 25, 2008 - 10:42 pm

Quoting Christoph Hellwig <hch@infradead.org>:


It looks like a mutex, it acts like a mutex, but it isn't a mutex,  
it's a trap for the unwary.  Weird.  I was annoyed by it before; now I  
see a fellow developer actually getting into that trap.

I'd say, rename DECLARE_MUTEX to DECLARE_SEMAPHORE and let external  
code be fixed one way or another (i.e. stick with the "mutex" name or  
stick with the semaphore functionality if it's really needed).

-- 
Regards,
Pavel Roskin
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Sun Feb 24, 1:03 pm)
Re: [RFC] mmiotrace full patch, preview 1 , Jonathan Corbet, (Tue Feb 26, 1:20 pm)
Re: [RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Wed Feb 27, 4:28 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andrew Morton, (Mon Feb 25, 6:49 pm)
Re: [RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Tue Feb 26, 4:02 pm)
Re: [RFC] mmiotrace full patch, preview 1, Christoph Hellwig, (Mon Feb 25, 7:34 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 6:21 am)
Re: [RFC] mmiotrace full patch, preview 1, Ingo Molnar, (Tue Feb 26, 6:49 am)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 11:20 am)
Re: [RFC] mmiotrace full patch, preview 1, Pavel Roskin, (Mon Feb 25, 10:42 pm)
Re: [RFC] mmiotrace full patch, preview 1, Christoph Hellwig, (Tue Feb 26, 1:10 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 4:57 am)
Re: [RFC] mmiotrace full patch, preview 1, Sam Ravnborg, (Sun Feb 24, 1:59 pm)
speck-geostationary