diff options
author | Marco Elver <elver@google.com> | 2022-08-29 14:47:15 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-08-30 10:56:23 +0200 |
commit | 01fe8a3f818e1074a9a95d624be4549ee7ea2b2b (patch) | |
tree | 1990719e80d616d0b780490ea75e5c091292dcf3 /drivers/vfio | |
parent | f95e5a3d59011eec1257d0e76de1e1f8969d426f (diff) |
locking/percpu-rwsem: Add percpu_is_write_locked() and percpu_is_read_locked()
Implement simple accessors to probe percpu-rwsem's locked state:
percpu_is_write_locked(), percpu_is_read_locked().
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20220829124719.675715-11-elver@google.com
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions