On Mon, 06 Jan 2025 09:15:29 +0100, Christoph Hellwig wrote: > blk_rq_map_sg is maze of nested loops. Untangle it by creating an > iterator that returns [paddr,len] tuples for DMA mapping, and then > implement the DMA logic on top of this. This not only removes code > at the source level, but also generates nicer binary code: > > $ size block/blk-merge.o.* > text data bss dec hex filename > 10001 432 0 10433 28c1 block/blk-merge.o.new > 10317 468 0 10785 2a21 block/blk-merge.o.old > > [...] Applied, thanks! [1/1] block: add a dma mapping iterator commit: b7175e24d6acf79d9f3af9ce9d3d50de1fa748ec Best regards, -- Jens Axboe