lkml.org 
[lkml]   [2012]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 25/26] aio: use xchg() instead of completion_lock
From
>@@ -686,9 +685,10 @@ void aio_complete(struct kiocb *iocb, long res, long res2)
> * ctx->ctx_lock to prevent other code from messing with the tail
> * pointer since we might be called from irq context.
> */

Well the comment is stale.

Hillf
>- spin_lock_irqsave(&ctx->completion_lock, flags);
>+ local_irq_save(flags);
>+ while ((tail = xchg(&ctx->tail, UINT_MAX)) == UINT_MAX)
>+ cpu_relax();


\
 
 \ /
  Last update: 2012-12-19 13:41    [W:0.032 / U:1.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site