On 08/19/2016 01:57 AM, Wanpeng Li wrote:
2016-08-19 5:11 GMT+08:00 Waiman Long<Waiman.Long@xxxxxxx>:When the count value is in between 0 and RWSEM_WAITING_BIAS, there are 2 possibilities. Either a writer is present and there is no waitercount = 0xffff0001or there are waiters and readers. There is no easy way tocount = 0xffff000X However, RWSEM_WAITING_BIAS is equal to 0xffff0000, so both these two cases are beyond RWSEM_WAITING_BIAS, right? Regards, Wanpeng Li
Perhaps I should make it clear that I am talking from a signed quantity point of view (it is an atomic_long_t). So
RWSEM_WAITING_BIAS < RWSEM_ACTIVE_WRITE_BIAS < 0 Hope this clarify your question. Cheers, Longman -- To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |