From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasily Averin Subject: [PATCH v2 0/2] ipc: allocations cleanup Date: Wed, 28 Apr 2021 10:35:05 +0300 Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: 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= In-Reply-To: Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii" To: Michal Hocko , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alexey Dobriyan , Shakeel Butt , Johannes Weiner , Vladimir Davydov , Andrew Morton , Dmitry Safonov <0x7f454c46-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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