From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCE19C433B4 for ; Mon, 26 Apr 2021 16:23:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4F9561166 for ; Mon, 26 Apr 2021 16:23:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234619AbhDZQY3 (ORCPT ); Mon, 26 Apr 2021 12:24:29 -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-Google-Smtp-Source: ABdhPJya8xVyd676M4Jx0SWibFM2/Ks3Pfe0GPzY45vMpHIL+53rwKQh/+GUF4kYAN02VM48ON7tewsrQwEmnqzP/pA= 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