Re: [RFC PATCH v7 4/5] block: add a helper function to merge the segments

2019-06-23 Thread Christoph Hellwig
> +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

[RFC PATCH v7 4/5] block: add a helper function to merge the segments

2019-06-20 Thread Yoshihiro Shimoda
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