> +bool blk_queue_can_use_dma_map_merging(struct request_queue *q,
> +struct device *dev)
> +{
> + unsigned long boundary = dma_get_merge_boundary(dev);
> +
> + if (!boundary)
> + return false;
> +
> + /* No need to update max_segment_size
This patch adds a helper function whether a queue can merge
the segments by the DMA MAP layer (e.g. via IOMMU).
Signed-off-by: Yoshihiro Shimoda
---
block/blk-settings.c | 22 ++
include/linux/blkdev.h | 2 ++
2 files changed, 24 insertions(+)
diff --git a/block/blk-setti