diff options
author | Waiman Long <longman@redhat.com> | 2020-11-21 05:14:12 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-12-09 17:08:47 +0100 |
commit | c8fe8b0564388f41147326f31e4587171aacccd4 (patch) | |
tree | da3fb2f70ad4d542f0260c8115842bb97e651a65 /kernel/locking/semaphore.c | |
parent | locking/rwsem: Fold __down_{read,write}*() (diff) | |
download | linux-c8fe8b0564388f41147326f31e4587171aacccd4.tar.xz linux-c8fe8b0564388f41147326f31e4587171aacccd4.zip |
locking/rwsem: Pass the current atomic count to rwsem_down_read_slowpath()
The atomic count value right after reader count increment can be useful
to determine the rwsem state at trylock time. So the count value is
passed down to rwsem_down_read_slowpath() to be used when appropriate.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Link: https://lkml.kernel.org/r/20201121041416.12285-2-longman@redhat.com
Diffstat (limited to 'kernel/locking/semaphore.c')
0 files changed, 0 insertions, 0 deletions