[lkml]   [2007]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] convert aio event reap to use atomic-op instead of spin_lock
On Thu, Apr 12, 2007 at 12:50:39AM -0700, Ken Chen wrote:
> I ran through the autotest (with bug fix in the test code). It passes
> the regression tests. I made the following change since last rev:

By removing the spinlock around ring insertion, you've made it possible
for two events being inserted on different CPUs to end up creating
inconsistent state, as there is nothing which guarantees that resulting
event in the ring will be wholely one event or another.

Also, I don't like rounding up of the number of events to the nearest power
of two, as it can round things up significantly more than just going to the
end of the last actual page of memory allocated.



PS base64 encoded patches are incredibly difficult to quote.
"Time is of no importance, Mr. President, only life is important."
Don't Email: <>.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-04-12 16:35    [W:0.135 / U:2.056 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site