commit | 55cc156505f2e43fa45dbd4bfe8f9c9d848ca44c | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <oleg@redhat.com> | Tue Jul 21 20:26:44 2015 +0200 |
committer | Oleg Nesterov <oleg@redhat.com> | Sat Aug 15 13:52:10 2015 +0200 |
tree | 18e5e34c2621de27c4833d834e05213c46587478 | |
parent | 9287f6925ad9d8fb8c6283066b4f77fd87f123a9 [diff] |
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: Oleg Nesterov <oleg@redhat.com>