Re: [PATCH] dmapool: push new blocks in ascending order

From: Bryan O'Donoghue
Date: Tue Feb 21 2023 - 12:20:18 EST


On 21/02/2023 16:54, Keith Busch wrote:
From: Keith Busch <kbusch@xxxxxxxxxx>

Some users of the dmapool need their allocations to happen in ascending
order. The recent optimizations pushed the blocks in reverse order, so
restore the previous behavior by linking the next available block from
low-to-high.

Fixes: ced6d06a81fb69 ("dmapool: link blocks across pages")
Reported-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>

Tested-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>