diff options
author | Christian König <christian.koenig@amd.com> | 2019-08-07 12:31:48 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2019-08-10 12:30:07 +0200 |
commit | 0e2f733addbf7702065cc18d38b67a1284d0c2be (patch) | |
tree | eead8f17ec88ec30401cb0c7f339b559a28bf924 /drivers/dma-buf | |
parent | a84ddb83806ed43a67f6fe6a03b0b4695cc314c3 (diff) | |
download | linux-0e2f733addbf7702065cc18d38b67a1284d0c2be.tar.bz2 |
dma-buf: make dma_fence structure a bit smaller v2
We clear the callback list on kref_put so that by the time we
release the fence it is unused. No one should be adding to the cb_list
that they don't themselves hold a reference for.
This small change is actually making the structure 16% smaller.
v2: add the comment to the code as well.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322916/
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions