dma-buf/fence: add signal_on_any to the fence array v2
authorChristian König <christian.koenig@amd.com>
Wed, 1 Jun 2016 13:10:04 +0000 (15:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jun 2016 07:28:04 +0000 (09:28 +0200)
commitf71045689656e307166f6d625fa13d8b75fb0523
tree5a5cdce5a8628c0234b8a5af2cc012033f631423
parentb3dfbdf261e076a997f812323edfdba84ba80256
dma-buf/fence: add signal_on_any to the fence array v2

If @signal_on_any is true the fence array signals if any fence in the array
signals, otherwise it signals when all fences in the array signal.

v2: fix signaled test and add comment suggested by Chris Wilson.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464786612-5010-4-git-send-email-deathsimple@vodafone.de
drivers/dma-buf/fence-array.c
include/linux/fence-array.h