Commit f9e21aa
locking/rwsem: No need to check for handoff bit if wait queue empty
Since commit d257cc8 ("locking/rwsem: Make handoff bit handling
more consistent"), the handoff bit is always cleared if the wait queue
becomes empty. There is no need to check for RWSEM_FLAG_HANDOFF when
the wait list is known to be empty.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220322152059.2182333-2-longman@redhat.com1 parent 8b023ac commit f9e21aa
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | | - | |
982 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
983 | 983 | | |
984 | | - | |
985 | | - | |
| 984 | + | |
986 | 985 | | |
987 | 986 | | |
988 | 987 | | |
| |||
0 commit comments