diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-07-21 18:45:57 +0300 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2015-08-15 14:52:10 +0300 |
commit | 9287f6925ad9d8fb8c6283066b4f77fd87f123a9 (patch) | |
tree | 45da8cd0ac42defea9ca9e1efee0dc6daf4189b4 /include/linux/percpu-rwsem.h | |
parent | 0e28e01f1e73015d8e1b8fa1cda071d0bd9a2600 (diff) | |
download | linux-9287f6925ad9d8fb8c6283066b4f77fd87f123a9.tar.xz |
percpu-rwsem: introduce percpu_down_read_trylock()
Add percpu_down_read_trylock(), it will have the user soon.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'include/linux/percpu-rwsem.h')
-rw-r--r-- | include/linux/percpu-rwsem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/percpu-rwsem.h b/include/linux/percpu-rwsem.h index 3e88c9a7d57f..16c30cd33501 100644 --- a/include/linux/percpu-rwsem.h +++ b/include/linux/percpu-rwsem.h @@ -16,6 +16,7 @@ struct percpu_rw_semaphore { }; extern void percpu_down_read(struct percpu_rw_semaphore *); +extern int percpu_down_read_trylock(struct percpu_rw_semaphore *); extern void percpu_up_read(struct percpu_rw_semaphore *); extern void percpu_down_write(struct percpu_rw_semaphore *); |