summaryrefslogtreecommitdiffstats
path: root/kernel/locking/semaphore.c
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2020-11-21 05:14:12 +0100
committerPeter Zijlstra <peterz@infradead.org>2020-12-09 17:08:47 +0100
commitc8fe8b0564388f41147326f31e4587171aacccd4 (patch)
treeda3fb2f70ad4d542f0260c8115842bb97e651a65 /kernel/locking/semaphore.c
parentlocking/rwsem: Fold __down_{read,write}*() (diff)
downloadlinux-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