Skip to content
Commit 55cc1565 authored by Oleg Nesterov's avatar Oleg Nesterov
Browse files

percpu-rwsem: introduce percpu_rwsem_release() and percpu_rwsem_acquire()



Add percpu_rwsem_release() and percpu_rwsem_acquire() for the users
which need to return to userspace with percpu-rwsem lock held and/or
pass the ownership to another thread.

TODO: change percpu_rwsem_release() to use rwsem_clear_owner(). We can
either fold kernel/locking/rwsem.h into include/linux/rwsem.h, or add
the non-inline percpu_rwsem_clear_owner().

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
parent 9287f692
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment