Re: [PATCH V5] x86 spinlock: Fix memory corruption on completing completions

From: Oleg Nesterov
Date: Sun Feb 15 2015 - 15:34:38 EST

On 02/15, Raghavendra K T wrote:
> * Raghavendra K T <raghavendra.kt@xxxxxxxxxxxxxxxxxx> [2015-02-15 11:25:44]:
> Resending the V5 with smp_mb__after_atomic() change without bumping up
> revision

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Of course, this needs the acks from maintainers. And I agree that SLOWPATH
in .head makes xadd() in unlock() unavoidable. However I do not see how we
can avoid the locked inc if we want to eliminate read-after-unlock.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at