[PATCH v2 0/3] locking/rwsem: Miscellaneous cleanup and fix

From: Waiman Long
Date: Tue Mar 22 2022 - 11:21:43 EST


Patch 1 is just a simple cleanup patch. Patches 2 and 3 applies the same
consistent rules to optionally wake up waiters in reader & writers
slowpaths as well as in the out_nolock paths.

Waiman Long (3):
locking/rwsem: No need to check for handoff bit if wait queue empty
locking/rwsem: Conditionally wake waiters in reader/writer slowpaths
locking/rwsem: Always try to wake waiters in out_nolock path

kernel/locking/rwsem.c | 121 ++++++++++++++++++++++++-----------------
1 file changed, 70 insertions(+), 51 deletions(-)

--
2.27.0