1 // SPDX-License-Identifier: MIT
3 * Copyright © 2020 Intel Corporation
6 #include <linux/dma-resv.h>
8 #include "dma_resv_utils.h"
10 void dma_resv_prune(struct dma_resv *resv)
12 if (dma_resv_trylock(resv)) {
13 if (dma_resv_test_signaled(resv, true))
14 dma_resv_add_excl_fence(resv, NULL);
15 dma_resv_unlock(resv);