summaryrefslogtreecommitdiff
path: root/drivers/ssb
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-07-01 12:58:00 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:12:26 +0900
commit038e0e53f40f24ec815cebea9f90a58b141f4e96 (patch)
treef15474946c0480e03702073eba877b060d73109e /drivers/ssb
parent50a6fbd6189080a4913604e1275effbdffc69a30 (diff)
downloadlinux-3.10-038e0e53f40f24ec815cebea9f90a58b141f4e96.tar.gz
linux-3.10-038e0e53f40f24ec815cebea9f90a58b141f4e96.tar.bz2
linux-3.10-038e0e53f40f24ec815cebea9f90a58b141f4e96.zip
reservation: add suppport for read-only access using rcu
This adds some extra functions to deal with rcu. reservation_object_get_fences_rcu() will obtain the list of shared and exclusive fences without obtaining the ww_mutex. reservation_object_wait_timeout_rcu() will wait on all fences of the reservation_object, without obtaining the ww_mutex. reservation_object_test_signaled_rcu() will test if all fences of the reservation_object are signaled without using the ww_mutex. reservation_object_get_excl and reservation_object_get_list require the reservation object to be held, updating requires write_seqcount_begin/end. If only the exclusive fence is needed, rcu_dereference followed by fence_get_rcu can be used, if the shared fences are needed it's recommended to use the supplied functions. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Acked-by: Sumit Semwal <sumit.semwal@linaro.org> Acked-by: Daniel Vetter <daniel@ffwll.ch> Reviewed-By: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions