From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Gushchin Subject: Re: [PATCH 2/2] ipc: use kmalloc for msg_queue and shmid_kernel Date: Mon, 26 Apr 2021 13:29:39 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=facebook; bh=rXDcU7tQ5Vc69pZk5LRI6xLe4iooIoBoOjybRbWdmVk=; b=aJVNqtujGEW2WopKlcDV4ID1yV094eHTY52PMpIyAcH8wXGvkS0uhFDjN/r5BAZ78Wff PEzbzVY0MVdRXgnTYX43UNjpTSS/K86BX5saewRDp2rsXkbf8mlh/w4NHHISzcjrkIn/ FdwI/7oaN1WPfWax9Irecku8qGdXF4oZ46Y= Content-Disposition: inline In-Reply-To: List-ID: Content-Transfer-Encoding: 7bit To: Vasily Averin Cc: Michal Hocko , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alexey Dobriyan , Shakeel Butt , Johannes Weiner , Vladimir Davydov , Andrew Morton , Dmitry Safonov <0x7f454c46-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> On Mon, Apr 26, 2021 at 01:18:14PM +0300, 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 Acked-by: Roman Gushchin Thanks!