Hi, Wanpeng recently reminded me of how horrible this function is, and we are now in a position to improve it; see patch 3 for details.
Please consider for v4.9. Thanks! Davidlohr Bueso (3): locking/rwsem: Return void in __rwsem_mark_wake() locking/rwsem: Remove a few useless comments locking/rwsem: Scan the wait_list for readers only once kernel/locking/rwsem-xadd.c | 92 ++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 51 deletions(-) -- 2.6.6