On Thu, 2013-06-20 at 10:11 +0530, Aneesh Kumar K.V wrote:
> + while (1) {
> + old_pte = pte_val(*ptep);
> + /*
> + * wait until _PAGE_BUSY is clear then set it
> atomically
> + */
> + if (unlikely(old_pte & _PAGE_BUSY))
> + continue;
> +
Add a cpu_relax...
Cheers,
Ben.