diff options
author | Yanfei Xu <[email protected]> | 2021-10-13 21:41:54 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-10-19 17:27:06 +0200 |
commit | 5197fcd09ab6dcc4df79edec7e8e27575276374c (patch) | |
tree | 3514a3676d98a5611b17b84555dc6556c9d61fe8 /net/lapb/lapb_timer.c | |
parent | 6c2787f2a20ceb49c98bd06f7dad1589eed1c951 (diff) |
locking/rwsem: Fix comments about reader optimistic lock stealing conditions
After the commit 617f3ef95177 ("locking/rwsem: Remove reader
optimistic spinning"), reader doesn't support optimistic spinning
anymore, there is no need meet the condition which OSQ is empty.
BTW, add an unlikely() for the max reader wakeup check in the loop.
Signed-off-by: Yanfei Xu <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Waiman Long <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions