RDMA/rtrs_clt: Alloc less memory with write path fast memory registration
authorJack Wang <jinpu.wang@cloud.ionos.com>
Mon, 21 Jun 2021 05:53:38 +0000 (07:53 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 00:02:21 +0000 (21:02 -0300)
commitdf1885a755784da3ef285f36d9230c1d090ef186
treeca8f1edf4158f18b1652aa1a3014685b1c7c806d
parent2ece9ec62e5b276b4635d391c844b2ffcd10bbf1
RDMA/rtrs_clt: Alloc less memory with write path fast memory registration

With write path fast memory registration, we need less memory for
each request.

With fast memory registration, we can reduce max_send_sge to save
memory usage.

Also convert the kmalloc_array to kcalloc.

Link: https://lore.kernel.org/r/20210621055340.11789-4-jinpu.wang@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Reviewed-by: Md Haris Iqbal <haris.iqbal@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c