Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp661447ybj; Tue, 5 May 2020 05:47:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJdqxlqOw2wpiZolmp/RWxT5Alce9oRQXR0Z5dNQ1bZ3+s1nZzbTSq3ttm7DYwvcccFY19i X-Received: by 2002:aa7:de0b:: with SMTP id h11mr2441740edv.133.1588682822496; Tue, 05 May 2020 05:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588682822; cv=none; d=google.com; s=arc-20160816; b=kfFa8hJJ4DdRT2tv4uDnzfgLvioyr6TEKXQ+PA8moUs5ZtCEflMMVcsZ8QmmGQlbw4 LF7g5l4QA7lK4TOR4a2KVd0eBYUfQllyM1NxC/gs8j5b6yY1aoRzDK2zKC3TGSwKABiP ITaiJZCbpv+YxsqZHoTUPfJi0kIkbgR/L5cHZWM6V9LierkqOGItLMGGSmbuklOP71Lc qALknLB/E+kyxegNqovdHt5zpVxO1Uf0JOZgKmXtPYEgBzLTQVuoIYiQ2Sd1WgxqTt1f RjZdkhhRQQ53whQAxwF4Xnw5F07xdTMo7KVkGN3cL2+klpJI82y05VYy8/5h8V4lMmhK h90w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gEsDJE9b92zqdWmyQBzKDfe+DaAlubAGj8cIqWXTnpQ=; b=Sh0YZGvqWlb0SRZ54PvBydbeTHlokB1UuLV+mhTkCzlaPfvln/7LeOz4jDJ+WWipla BEjVRo8EJ4wB1sheMRyPpSLPn8V/5g8VFZore5KyrGmPwrwazSdIuns7eRDdEzAi1qeZ Jz9d3cLqvVE5QhS2pkbU2neGCrcqAR9nc1FFo3+lFKLVx3CJkLia13fvs7dyJ8zF2mf3 ERJxlwbhDipyzzMNDgPPVM2NpAm41VjlvZCq1tWbyZTVHlmsPBCa6CG9u9NvzuxWdh5B /Xf3epfc7pXuVM3uiXeVToK7z9RbMhSM7rofkMceI4o15eT6xUGqxqlrLp3rNHHMOVuR DveQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si1030520edr.91.2020.05.05.05.46.39; Tue, 05 May 2020 05:47:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728979AbgEEMoz (ORCPT + 99 others); Tue, 5 May 2020 08:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728497AbgEEMoz (ORCPT ); Tue, 5 May 2020 08:44:55 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0FAEC061A0F; Tue, 5 May 2020 05:44:54 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVwwF-001UFP-0k; Tue, 05 May 2020 12:44:43 +0000 Date: Tue, 5 May 2020 13:44:42 +0100 From: Al Viro To: SeongJae Park Cc: davem@davemloft.net, kuba@kernel.org, gregkh@linuxfoundation.org, edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: Re: [PATCH net 0/2] Revert the 'socket_alloc' life cycle change Message-ID: <20200505124442.GX23230@ZenIV.linux.org.uk> References: <20200505072841.25365-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505072841.25365-1-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 09:28:39AM +0200, SeongJae Park wrote: > From: SeongJae Park > > The commit 6d7855c54e1e ("sockfs: switch to ->free_inode()") made the > deallocation of 'socket_alloc' to be done asynchronously using RCU, as > same to 'sock.wq'. And the following commit 333f7909a857 ("coallocate > socket_sq with socket itself") made those to have same life cycle. > > The changes made the code much more simple, but also made 'socket_alloc' > live longer than before. For the reason, user programs intensively > repeating allocations and deallocations of sockets could cause memory > pressure on recent kernels. > > To avoid the problem, this commit reverts the changes. Is it "could cause" or is it "have been actually observed to"?