]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rtrs-srv: Do not use mempool for page allocation
authorJack Wang <jinpu.wang@ionos.com>
Tue, 12 Jul 2022 10:31:13 +0000 (12:31 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 09:28:06 +0000 (12:28 +0300)
commit9cac2093b7cbbc43943a111fca402efc19183771
tree220ffe6aaca661af524281587ce229fff7a5f253
parent29cabcbbaf1c982feb32a77feddadb733c48acc7
RDMA/rtrs-srv: Do not use mempool for page allocation

The mempool is for guaranteed memory allocation during
extreme VM load (see the header of mempool.c of the kernel).
But rtrs-srv allocates pages only when creating new session.
There is no need to use the mempool.

With the removal of mempool, rtrs-server no longer need to reserve
huge mount of memory, this will avoid error like this:
https://lore.kernel.org/lkml/20220620020727.GA3669@xsang-OptiPlex-9020/

Link: https://lore.kernel.org/r/20220712103113.617754-6-haris.iqbal@ionos.com
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Acked-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-srv.c