Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E26B2C43334 for ; Fri, 8 Jul 2022 07:27:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237467AbiGHH1f (ORCPT ); Fri, 8 Jul 2022 03:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237569AbiGHH1W (ORCPT ); Fri, 8 Jul 2022 03:27:22 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F287C194 for ; Fri, 8 Jul 2022 00:27:20 -0700 (PDT) Subject: Re: [PATCH for-next 5/5] RDMA/rtrs-srv: Do not use mempool for page allocation DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1657265239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e4k14x8GV8ZlgaPKIhCKNQBCt42IVLjaz46rfH6pIgE=; b=rQPmUWQd9o8DtPT6Y2M9BTcjho0KCQeiEHYG7lNCFlf0W/Q26ILhfaz/qPvCdb4up+Pumh gU413Oy7ntlIgtJFk7kB041dtJ0LwoPibRFfhVJ23XS+KDnS27G3lKFtcfbTMd1PUR4L2q 3UyNOkX29/es5ekgTUyMo8xHSAgf9Wk= To: Md Haris Iqbal , linux-rdma@vger.kernel.org Cc: leon@kernel.org, jgg@ziepe.ca, jinpu.wang@ionos.com, Gioh Kim References: <20220707142144.459751-1-haris.iqbal@ionos.com> <20220707142144.459751-6-haris.iqbal@ionos.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Guoqing Jiang Message-ID: Date: Fri, 8 Jul 2022 15:27:10 +0800 MIME-Version: 1.0 In-Reply-To: <20220707142144.459751-6-haris.iqbal@ionos.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On 7/7/22 10:21 PM, Md Haris Iqbal wrote: > From: Jack Wang > > 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://www.spinics.net/lists/kernel/msg4404829.html > > Signed-off-by: Gioh Kim > Signed-off-by: Jack Wang > Signed-off-by: Md Haris Iqbal > --- > drivers/infiniband/ulp/rtrs/rtrs-srv.c | 23 ++++++----------------- Acked-by: Guoqing Jiang Thanks, Guoqing