Re: [PATCH] scsi: hisi_sas: optimise DMA slot memory
From: Frans Klaver
Date: Wed Jun 28 2017 - 11:09:42 EST
On Wed, Jun 28, 2017 at 5:25 PM, John Garry <john.garry@xxxxxxxxxx> wrote:
> From: Xiaofei Tan <tanxiaofei@xxxxxxxxxx>
>
> Currently we allocate 3 sets of DMA memories from separate
> pools for each slot. This is inefficient in terms of memory usage
> (buffers are less than 1 page in size, so we lose due to alignment),
> and also time spend in doing 3 allocations + de-allocations per slot,
> instead of 1.
>
> To optimise, combine the 3 DMA buffers into a single buffer from a
> single pool.
>
> Signed-off-by: John Garry <john.garry@xxxxxxxxxx>
> Signed-off-by: Xiaofei Tan <tanxiaofei@xxxxxxxxxx>
I'm not sure how strictly this is done, but typically the author signs
off first.
Frans