On 6/24/22 02:46, Sebastian Andrzej Siewior wrote:
On 2022-06-24 10:39:43 [+0800], Baoquan He wrote:Then this is a good chance to reconsider it, maybe with a test from Zhipeng.I reconsidered and it was dropped purpose, see https://lore.kernel.org/lkml/YT80AB8%2FG59QBSVq@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
I do agree that is_contended may not that useful for rwlock, but it can be useful for spinlock. Will you consider a version just for rt_spinlock?
Cheers, Longman