Skip to content

Commit 3469d36

Browse files
author
Christoph Hellwig
committed
swiotlb: make swiotlb_exit a no-op if SWIOTLB_FORCE is set
If force bouncing is enabled we can't release the buffers. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]> Tested-by: Boris Ostrovsky <[email protected]>
1 parent 0741055 commit 3469d36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/dma/swiotlb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ void __init swiotlb_exit(void)
369369
unsigned long tbl_vaddr;
370370
size_t tbl_size, slots_size;
371371

372+
if (swiotlb_force == SWIOTLB_FORCE)
373+
return;
374+
372375
if (!mem->nslabs)
373376
return;
374377

0 commit comments

Comments
 (0)