Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1013232imm; Mon, 9 Jul 2018 15:18:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVtP3cOA7tdMcRjg7su8O+AnLiI/MUWTFdIEx91/TmzHWNV37ndy//tQmgntppDby/c9WG X-Received: by 2002:a62:990f:: with SMTP id d15-v6mr23017209pfe.162.1531174703002; Mon, 09 Jul 2018 15:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531174702; cv=none; d=google.com; s=arc-20160816; b=O1K/KVjNzFUy9L9YWM+bXe0zWEM7pc4n0vn7IDDxbKRQSXJ24VPCkTjUWyjiUXOgb4 zlwRNlsy648zZYnqpHhTGSGLClA8GABudndULxuyYE8OXcPZP2p/WzbqXCJxlio3rwKv 0nm+pI4X3GRCWelWB2hVerCU4RKV973D4zHPinGaRAEpUV4P46YayrQmFgY5RCSMRXJF MLb8qoaAJeZRF4/TMiuZSrZqRLrpomzPluzqIxK/LS71UlHY0IjB6rhLYUBCqMzKCBnB qdSku66HiEESpoXBFpH5wJ564mTbUBNHUC7O69Ol6V/+X1r5X5k46IcP4K7MlCXE0cKp vpYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=cH5Xkc/YsNxLP+RJ4AOWrVB/0MZT2ICv3bcSGShLNfI=; b=fcN8ZoJz88X2kRgBOudEtiQiXmeCCjWZnW9QpW0NtWuWyKcY8SehNoPE/HaUtd2bNF Bi5SwBUC4fMXRidVvehD01LNw+hr0aTZXAqJzvABerSWX4RLItJxwQwgyMdYBbZdYv/P cg8POoCSR7MQ30OLwkP9ngHzSb1BLP4KTKgTKR+iem0ray6gUkzG1bEA0y4s//7DyFcM 6GO1FEdclQYbUQpUdwBzFbbcoGC8MGhVP8PVD8kw+xtGA8Dqgx9EN8BQVtgWzSIVX2XE Ou2LBsxjpRs/IEotdmqYzfzkddvWpGFxkDp/eGxNyR4bgDMuRyrbzoTLdKwJ6rUAeKKc xBAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ABO69lqi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si14149342pgb.102.2018.07.09.15.18.08; Mon, 09 Jul 2018 15:18:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ABO69lqi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754564AbeGIWQr (ORCPT + 99 others); Mon, 9 Jul 2018 18:16:47 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40515 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754406AbeGIWQp (ORCPT ); Mon, 9 Jul 2018 18:16:45 -0400 Received: by mail-wm0-f67.google.com with SMTP id z13-v6so22267860wma.5 for ; Mon, 09 Jul 2018 15:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cH5Xkc/YsNxLP+RJ4AOWrVB/0MZT2ICv3bcSGShLNfI=; b=ABO69lqifqZEjcF4DaUKGYj9WVh1JPwNmIrQaVjr7wvUQ694ahFBM+SWURmhN6Ojk5 7aXHDEpCJd2i/AxXj5PUXcYdkYWKj3zgzI6Pjj68ELSx7Ps0/b28F9f++rvCR0YpQUT/ +T7UpY3o2nZjOfjoyUYrBGfKu4YHLhw6tSdI/0SnYFzbYLlOeshweHN4hGuQwFyqF0Dc A0ms9k2YKh03TTNscsBthctwAuwFLhkI3F1QbdnkKN9KfS3j1JYaWeYk+i07NW2LtkQl wvUWOR4v5htSCHxx/6NA42nAPyGP8AndfPkb6lqdejPYDuA1JHp8rau+/SSoK+DJIST/ Hmyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cH5Xkc/YsNxLP+RJ4AOWrVB/0MZT2ICv3bcSGShLNfI=; b=lB79KphOc5Lns/JQgNVT8kTfRSuUCs7BFDFg5XNW6ZMYwpYAvD/HBvzNM6LrJx4RtZ URlJoQag6qc0rSbRS5qQIF9Pny2T5Tw0amhlTNG8mmD8aUCvDN3866m/QA/qaqpW4Bh4 OxhvvG8fH8yeg6Ea4mLIySPB2IwFTw7RsOhcUHPne8Hozq/F4MwMNrvLvc1IEUBj5QLd LK2UFvBU+clqH3y1RMdIyfGushs8iL4DtY60IaXO3KBDPeu+xpYYRrhUT5sj+Zby6aF/ FRK1yRvDZAGNJ585gKABNPCGtTlAHYx3fyLNOOVTrIlm4ixCBmvt9vZ7Y6uyIXxdidv4 sLAw== X-Gm-Message-State: APt69E1wV5ffaWKoXIpzqLupv9+dQqP2bv70FER28cx/dImduyDcaZ2n t2+b33q8eUAazBg9bAqHHBwwyw== X-Received: by 2002:a7b:c01a:: with SMTP id c26-v6mr13771605wmb.33.1531174604683; Mon, 09 Jul 2018 15:16:44 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id q140-v6sm21775439wmb.35.2018.07.09.15.16.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 15:16:43 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1fceSV-0003jB-Kj; Mon, 09 Jul 2018 16:16:39 -0600 Date: Mon, 9 Jul 2018 16:16:39 -0600 From: Jason Gunthorpe To: Jan Dakinevich Cc: Doug Ledford , Bart Van Assche , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Denis Lunev , Konstantin Khorenko Subject: Re: [PATCH] ib_srpt: use kvmalloc to allocate ring pointers Message-ID: <20180709221639.GA14259@ziepe.ca> References: <1531144268-25361-1-git-send-email-jan.dakinevich@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531144268-25361-1-git-send-email-jan.dakinevich@virtuozzo.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 04:51:08PM +0300, Jan Dakinevich wrote: > An array of pointers to SRPT contexts in ib_device is over 30KiB even > in default case, in which an amount of contexts is 4095. The patch > is intended to weed out large contigous allocation for non-DMA memory. > > Signed-off-by: Jan Dakinevich > Reviewed-by: Bart Van Assche > --- > drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied to for-next Thanks, Jason