dma-direct: add a dma_direct_use_pool helper
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Nov 2021 14:50:28 +0000 (15:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Dec 2021 15:46:35 +0000 (16:46 +0100)
commit28e4576d556bca543b0996e9edd4b767397e24c6
tree071f859a8ec6385f0b80ad3c1ed2a11b73cffdaf
parentaea7e2a86a94b2583e1e812c596140034398a169
dma-direct: add a dma_direct_use_pool helper

Add a helper to check if a potentially blocking operation should
dip into the atomic pools.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c