Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3774702pxy; Mon, 26 Apr 2021 09:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5BHfN8bneidCrUrsG7wbmZP1hIcXeRRqiEhPwLZFOWlOTVzPbPI00ZmqE5XF2VEk4CnY1 X-Received: by 2002:a17:906:7188:: with SMTP id h8mr19653952ejk.227.1619454321583; Mon, 26 Apr 2021 09:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619454321; cv=none; d=google.com; s=arc-20160816; b=Mdf4LiMlZL4WnA3RJ+fWiYMEMBM0ubxanCiPOe40q4CgcUjDS8c/cgbUezQGtSH+5K PkoHANXtEU2YutzM7EFUSijxmo80Rf6e3rsmEmlmqiZzzvWWQN4947MU/weaYmdtg13H MBRNIJVff375nDWX4JkP7A6yDxLlnmke3GVb7iWueLuxpsC3HnPwUxpWt+Yg4d3mOoIl SC6iOb7o15ynF2laPnXP0bJguee2hRzhoqUrHC/FSZrHWbOdkOQZDuLObafNnKdEX1o2 ODjgvJshlTdw1i22IZAWfBP8EUAy9UUzgTfxxe0VROMniILX1enmc56pbFvVt0jW1Fau zNGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rPEBwOmjBEydXEY6alqbD5j0u/fm5bOySKZNXJROtWY=; b=HWj+0GFKoWcuFn8x2nwxihlcf05tbIks5NCFupjQq8QgbVn5nhsQe0qOpD+qjk3QWT 9zG4Vk6dYOA5xk1wa6PGVqJbN7ZAJf42TmayK1YGTrrDHo1AAX9+FpUqZLxXgc1cpnaX vQSSdEllCrazX1cM5/F8VP+f/5GG5rdBJfMSC+5wD9TdfXa8aouVSRiRV6pA/i8k2zZ7 YSL7YGmMIbfuXxU9ID6w09lyqPhlimIIUaOyK31rzhzMcu7aOG725Fl0TUaEqJBNyEp3 WL1gGPGxlaBfrpT6XagEu4C3k2eNQuzBFSEAIsCF66mseYOpc4cfClZejrzXMsAhy+x0 kl+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CBzfFfpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si16699601ejc.559.2021.04.26.09.24.57; Mon, 26 Apr 2021 09:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CBzfFfpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234585AbhDZQY2 (ORCPT + 99 others); Mon, 26 Apr 2021 12:24:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234685AbhDZQYU (ORCPT ); Mon, 26 Apr 2021 12:24:20 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356EBC061574 for ; Mon, 26 Apr 2021 09:23:39 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 124so8130050lff.5 for ; Mon, 26 Apr 2021 09:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rPEBwOmjBEydXEY6alqbD5j0u/fm5bOySKZNXJROtWY=; b=CBzfFfpbQdGiZGklxymOeIysY8Y6hqvvafywuFnyZm6XCRiozmcpptpmxATr6B3N0Y 2vwiwSapsbNuusSQtu58mBVhgW2QufIP9TM7J5pSkb6mERUc7qS7rFqBzMSa7TMMT0Ou bvy/yy4qDXOWefutGUTPkcbmAWaGWd2I7Bf8VRdRNzYB5RiXDnllKR8T6O/snx2YxBgz gOjFmCC5Oowjjx0oMclL3mq4z8LkEUcHSNaDxKmuBjoBgGa9Rie1o9m6vWmlh38T/4uB 31FPfSi2QMEmYeOxCHwkimIbpn2jrkbI2cLUrJbzyKLI91rhSgM28PmMv2Zd9zVHP2C6 Fjvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rPEBwOmjBEydXEY6alqbD5j0u/fm5bOySKZNXJROtWY=; b=KMCeLwrxz0ZaAVWiAVxmqUbdIHmoIihfVwnvNuGPiY/UnwGbJ9F+PI4wV39Ujh9yh9 UriMyap+nSH1FHG9zVctRBqlKOajax/hPZY444/1FiPue+nnhK68HUnFauhu5ZODwR/T 4KMIecRZ+t/IVGnV1TE4D623lIv+sMuM6wvLTCDLat81H6D5o4NKSv1LuMGCur6El7US J66lqgrTgvUmI79ijMVsI+Wj+saS7cuPMpTpQmwD1Fgtemmrg6z0sn46IfClxdjwywJ6 TNMq/H0IJ4p8620Sa7XaiaX//GfcGYncmcdp423S39MKMK0Ms6DNKvPcvEM4OSLwK6c2 tgug== X-Gm-Message-State: AOAM530E+e+KHYCbOXkLBwFy6hdulL8rppo6clWblmUVZZuTWQVphDev jhIjAOhfDXDbofCrMRTZH1nzDK60CI8ir43YRsAFgg== X-Received: by 2002:a19:ed11:: with SMTP id y17mr735854lfy.117.1619454217468; Mon, 26 Apr 2021 09:23:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shakeel Butt Date: Mon, 26 Apr 2021 09:23:26 -0700 Message-ID: Subject: Re: [PATCH 2/2] ipc: use kmalloc for msg_queue and shmid_kernel To: Vasily Averin Cc: Michal Hocko , Cgroups , LKML , Alexey Dobriyan , Johannes Weiner , Vladimir Davydov , Andrew Morton , Dmitry Safonov <0x7f454c46@gmail.com> Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 3:18 AM Vasily Averin wrote: > > msg_queue and shmid_kernel are quite small objects, no need to use > kvmalloc for them. > Previously these objects was allocated via ipc_alloc/ipc_rcu_alloc(), > common function for several ipc objects. It had kvmalloc call inside(). > Later, this function went away and was finally replaced by direct > kvmalloc call, and now we can use more suitable kmalloc/kfree for them. > > Reported-by: Alexey Dobriyan > Signed-off-by: Vasily Averin Reviewed-by: Shakeel Butt