aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-trace.h
diff options
context:
space:
mode:
authorCarlos Llamas <[email protected]>2023-05-02 20:12:19 +0000
committerGreg Kroah-Hartman <[email protected]>2023-05-13 11:30:16 +0000
commit0fa53349c3acba0239369ba4cd133740a408d246 (patch)
tree8e5382b1f7fab622cf9550ce9d5f00e614f26408 /drivers/usb/cdns3/cdns3-trace.h
parentRevert "android: binder: stop saving a pointer to the VMA" (diff)
downloadkernel-0fa53349c3acba0239369ba4cd133740a408d246.tar.gz
kernel-0fa53349c3acba0239369ba4cd133740a408d246.zip
binder: add lockless binder_alloc_(set|get)_vma()
Bring back the original lockless design in binder_alloc to determine whether the buffer setup has been completed by the ->mmap() handler. However, this time use smp_load_acquire() and smp_store_release() to wrap all the ordering in a single macro call. Also, add comments to make it evident that binder uses alloc->vma to determine when the binder_alloc has been fully initialized. In these scenarios acquiring the mmap_lock is not required. Fixes: a43cfc87caaf ("android: binder: stop saving a pointer to the VMA") Cc: Liam Howlett <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: [email protected] Signed-off-by: Carlos Llamas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions