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=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 22279C433B4 for ; Wed, 28 Apr 2021 07:35:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0C5C60234 for ; Wed, 28 Apr 2021 07:35:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236921AbhD1Hf4 (ORCPT ); Wed, 28 Apr 2021 03:35:56 -0400 Received: from relay.sw.ru ([185.231.240.75]:45718 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbhD1Hfz (ORCPT ); Wed, 28 Apr 2021 03:35:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:Subject :From; bh=rt9hMUShGGdTkFhHM9nn7jw5xlKeoUNDnqLfS9j0MZU=; b=oN0VbyebvbVj4UP7nYI 0e6DEFhmpt1zjLehASYxqZh/T/RalZFrj1ifVvRu99O+mr+3PYe3frgOTzIHgfq4AIg8k8rtNzrBX bEX+PjVxzIl8PsbhpZleCbmHsl//U9BjP5xvGI2PHstUqwVcJtZdyTV6xuhl6ucCPZPQJwjiQ4w= Received: from [10.93.0.56] by relay.sw.ru with esmtp (Exim 4.94) (envelope-from ) id 1lbeiw-001VrE-7M; Wed, 28 Apr 2021 10:35:06 +0300 From: Vasily Averin Subject: [PATCH v2 0/2] ipc: allocations cleanup To: Michal Hocko , cgroups@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan , Shakeel Butt , Johannes Weiner , Vladimir Davydov , Andrew Morton , Dmitry Safonov <0x7f454c46@gmail.com> References: Message-ID: Date: Wed, 28 Apr 2021 10:35:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some ipc objects use the wrong allocation functions: small objects can use kmalloc(), and vice versa, potentially large objects can use kmalloc(). I think it's better to handle these patches via cgroups@ to avoid merge conflicts with "memcg: enable accounting of ipc resources" patch included to "memcg accounting from OpenVZ" patch set. v2: - improved patch description Vasily Averin (2): ipc sem: use kvmalloc for sem_undo allocation ipc: use kmalloc for msg_queue and shmid_kernel ipc/msg.c | 6 +++--- ipc/sem.c | 10 +++++----- ipc/shm.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) -- 1.8.3.1