Re: [PATCH v2 0/7] locking/rwsem: enable reader opt-spinning & writer respin
From: Davidlohr Bueso
Date: Thu Aug 07 2014 - 19:52:50 EST
On Thu, 2014-08-07 at 18:26 -0400, Waiman Long wrote:
> v1->v2:
> - Remove patch 1 which changes preempt_enable() to
> preempt_enable_no_resched().
> - Remove the RWSEM_READ_OWNED macro and assume readers own the lock
> when owner is NULL.
> - Reduce the spin threshold to 64.
So I still don't like this, and the fact that it is used in some
virtualization locking bits doesn't really address the concerns about
arbitrary logic in our general locking code.
Also, why did you reduce it from 100 to 64? This very much wants to be
commented.
Thanks,
Davidlohr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/