Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp989954ybl; Fri, 24 Jan 2020 13:18:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwH/FNjRpDz/Av0PHnWqfITDSkwez/4TmicfLgY4YhMKZ1HcYxzV2wNIuTljXxATEhZfgw/ X-Received: by 2002:a05:6830:1e09:: with SMTP id s9mr4350164otr.139.1579900700326; Fri, 24 Jan 2020 13:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579900700; cv=none; d=google.com; s=arc-20160816; b=DDPceVNtZQGKCuAxG4HlkoayqiQDovFtxR0PliiWM7Wk6nKdA+WdMmXSpyUoJoMufx poV/AWTKDolm2/pvkM+W8jt7+8GxGNWvgW7Qx8CQ7jwRDMn6ETsmaK1elV8ooC0hK6UE O1pfCaciyGBNi/od/C3o48zM+L7RuFOr9iR6GQOt7jOo3J2b7Su8dKsnVwlyqZ6jPrZZ LKpMWfSam/VjjLeGLbjZLzTS1EQ0SA1STWzwYmyYDFi+FSsW+tWYIJdb61rxKZayNTsf Buktjhns1XdmS6g0TxoQPr8DtakYH/DoMtJinMn0CuT9GU/4wO0nuL36uoUPEISmFdPq lB0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MydTDxEsU37sVz614H6gUU7Kwgts1BS8rtlrZGVrrJU=; b=d28unpYUlK8UOP3hDc7/x/uSS6fgb03q5ar44WSpyYY8pl2IurACOL5vxYIRT9Bkc6 TSfOjHOFUqskClXjxFveiDBd/4ImwXxUsMVVBopPJb91yD0kWZbHNWkBnfzx/TyCyf5n +4d6IGgg1Bh4f0hym2CvGJ0SVaoREaII5ogRkqdQ9sQuRouBDMLnNj1dtJxL3acA9hD6 LM7lOQ8W6ZHAXKJP1W9ejknBUnIpShRA1z5f3alxim8dkYtsBIQL5K5WcRPU0/xOwxqi L1kg46mVUpK+YUtNTRFKexKkH+Es5rZRLDmb2cfN9G3HJoWp0MXjZv4TGA5FMzEXXC+2 aA5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 106si3199819oti.106.2020.01.24.13.18.06; Fri, 24 Jan 2020 13:18:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729459AbgAXVQu (ORCPT + 99 others); Fri, 24 Jan 2020 16:16:50 -0500 Received: from mail104.syd.optusnet.com.au ([211.29.132.246]:55401 "EHLO mail104.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbgAXVQu (ORCPT ); Fri, 24 Jan 2020 16:16:50 -0500 Received: from dread.disaster.area (pa49-195-162-125.pa.nsw.optusnet.com.au [49.195.162.125]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 991D1820C75; Sat, 25 Jan 2020 08:16:44 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1iv6Jm-00079w-Ii; Sat, 25 Jan 2020 08:16:42 +1100 Date: Sat, 25 Jan 2020 08:16:42 +1100 From: Dave Chinner To: Mike Christie Cc: Shakeel Butt , Andrew Morton , linux-api@vger.kernel.org, idryomov@gmail.com, Michal Hocko , Linux MM , LKML , linux-scsi@vger.kernel.org, linux-fsdevel , linux-block@vger.kernel.org, martin@urbackup.org, Damien.LeMoal@wdc.com, Michal Hocko , Masato Suzuki Subject: Re: [PATCH] Add prctl support for controlling mem reclaim V4 Message-ID: <20200124211642.GB7216@dread.disaster.area> References: <20191112001900.9206-1-mchristi@redhat.com> <5E2B19C9.6080907@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5E2B19C9.6080907@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=LYdCFQXi c=1 sm=1 tr=0 a=eqEhQ2W7mF93FbYHClaXRw==:117 a=eqEhQ2W7mF93FbYHClaXRw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=Jdjhy38mL1oA:10 a=20KFwNOVAAAA:8 a=iox4zFpeAAAA:8 a=JF9118EUAAAA:8 a=VwQbUJbxAAAA:8 a=7-415B0cAAAA:8 a=3XgbrJ93Oiw9jx1WlK8A:9 a=CjuIK1q_8ugA:10 a=WzC6qhA0u3u7Ye7llzcV:22 a=xVlTc564ipvMDusKsbsT:22 a=AjGcO6oz07-iQ99wixmX:22 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 24, 2020 at 10:22:33AM -0600, Mike Christie wrote: > On 12/05/2019 04:43 PM, Shakeel Butt wrote: > > On Mon, Nov 11, 2019 at 4:19 PM Mike Christie wrote: > >> This patch adds a new prctl command that daemons can use after they have > >> done their initial setup, and before they start to do allocations that > >> are in the IO path. It sets the PF_MEMALLOC_NOIO and PF_LESS_THROTTLE > >> flags so both userspace block and FS threads can use it to avoid the > >> allocation recursion and try to prevent from being throttled while > >> writing out data to free up memory. > >> > >> Signed-off-by: Mike Christie > >> Acked-by: Michal Hocko > >> Tested-by: Masato Suzuki > >> Reviewed-by: Damien Le Moal > > > > I suppose this patch should be routed through MM tree, so, CCing Andrew. > > > > Andrew and other mm/storage developers, > > Do I need to handle anything else for this patch, or are there any other > concerns? Is this maybe something we want to talk about at a quick LSF > session? > > I have retested it with Linus's current tree. It still applies cleanly > (just some offsets), and fixes the problem described above we have been > hitting. I must have missed this version being posted (just looked it up on lore.kernel.org). As far as I'm concerned this is good to go and it is absolutely necessary for userspace IO stacks to function correctly. Reviewed-by: Dave Chinner If no manintainer picks it up before the next merge window, then I recommend resending the latest version to Linus asking him to merge it. Cheers, Dave. -- Dave Chinner david@fromorbit.com