login
Header Space

 
 

Re: [PATCH] [keys] Always use key_get() to increment key refcount

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arun Raghavan <arunsr@...>
Cc: <dhowells@...>, <linux-kernel@...>
Date: Wednesday, March 19, 2008 - 6:29 pm

Arun Raghavan <arunsr@cse.iitk.ac.in> wrote:


The problem with this is that key_get() is not simply an atomic_inc().  You
end up introducing an extra conditional into each of these places where one is
not required.  Now it's possible that the compiler's optimiser is sufficiently
clever to get rid of them all, but do you guarantee that?

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

Messages in current thread:
Re: [PATCH] [keys] Always use key_get() to increment key ref..., David Howells, (Wed Mar 19, 6:29 pm)
speck-geostationary