Commit bfa41063 authored by Wang Chao's avatar Wang Chao Committed by Yang Yingliang
Browse files

scsi: hisi_sas: Make slot buf minimum allocation of PAGE_SIZE



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

For a system with PAGE_SIZE of 16K or 64K, the size every time we want to
alloc may be small like 4K, but for function dmam_alloc_coherent(), the
least size it allocates is PAGE_SIZE, so it will waste much memory for the
situation.

To solve the issue, limit the minimum allocation size of slot buf to
PAGE_SIZE.

Signed-off-by: default avatarWang Chao <wangchao342@hisilicon.com>
Reviewed-by: default avatarZhu Xiongxiong <zhuxiongxiong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent d53cf718
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment