Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3001846ybt; Mon, 22 Jun 2020 12:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn5zp2EynQq5RxwishrMLw5a0oKyh/rP6gugyLffsTHFSL7TzinQ/XIrH2+jIqQvY5JnME X-Received: by 2002:a17:906:d8bc:: with SMTP id qc28mr18066118ejb.167.1592853571494; Mon, 22 Jun 2020 12:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592853571; cv=none; d=google.com; s=arc-20160816; b=wb29JqeQmlnFTmi/F8gQbSg8s1Eex5eJS1tGYjsXecnUs/oS6mXNfATBV4BYR7Utcy TFpTPTOurWp/NIVbtHb1NuTO8nAtCuilGc6WqG1srRDtwOLQg8f5gnhkWR1zybKCkuQE Whw5FwkcFKryilwoAaCn7nJY4SzhztUxSA43clxNZ0FWz95zNhdagy1xgPAGU+OoHapY yav6d5OPR6L607xP51PcXWHw9uOFhz0n1ogzvGfiZWFodJGPH3vyc3XyqIa84RJ1zvg7 OJERsRFv7LYTijlo4K54v9PWV/mz+DOOpwSJsDJhKFVR/YqPnoa0GUlJaOQNdDNGdJ5E I0ug== 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:dkim-signature; bh=vOlums0omprzRySIKDtGsk5lTE0w50R9+b2YKHN4UQg=; b=hPeoiMMau6xXuHF8OrbBYr5jNdXchjMKLPdmQZ3VFI9toYe+6U/tk4sWMyMSkoFvJO FQHsTs4G02tLjibxUc0Ye7SBQP5JQgu7O6cZ40xhR55WGMK/BTGq8uqJzHqzXUvxMoxx VsYYBUibeRtHszk/39UiMpSwhbgLsKvpO8eH7ZWRcrO/wAse7UrWk85beqod+ZA1R2+u Ju6Oztj+u6KA7J6n8+b1HJjfPU0om/8KXIe/jd24swdhnSgXXTKthALTSG8bpVL2Xe9E 8buyk8gyjAuIrTkNyRRbOEXFv7UW1KkBI7zvy7v+4VF1sJQH3F2n/jajG10pwFoCkKVc Nj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="O2s4trg/"; 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 gg12si9481050ejb.27.2020.06.22.12.19.07; Mon, 22 Jun 2020 12:19:31 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="O2s4trg/"; 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 S1728072AbgFVTQs (ORCPT + 99 others); Mon, 22 Jun 2020 15:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbgFVTQs (ORCPT ); Mon, 22 Jun 2020 15:16:48 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 485DEC061573 for ; Mon, 22 Jun 2020 12:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vOlums0omprzRySIKDtGsk5lTE0w50R9+b2YKHN4UQg=; b=O2s4trg/qew86YOcSdJjIffHmA DdcAc3OSzu0c6CusCt867ZtR+rnFlEybpH5JG+mdx6CLhP1tRxZQsJZoKjgrEbf5rwiPNstH9ldEG N3fkuuR2Cv5QACnTkpY7XpSMCg4yon9Hh7VDDhVY1kLdmIMlmc2ryh8fFFJSiRpd059xok714noEx XnfWUmAGEv+ORIyTWMNzfLNQueG/IuuE9/vpinRJrgBwb6m6MAh8YLwIzpr8WBy+N4YpviXPf/Nkf cHXElQepKwFRdULiSknyeZ6DPEnBfDOo5ATJwwa5m628ktMXyZOOQKtiFmJPAgolo7WpJnEB9Hko/ M7I0k82A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnRvS-0001lC-9Q; Mon, 22 Jun 2020 19:16:14 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 3986D9834A6; Mon, 22 Jun 2020 21:16:13 +0200 (CEST) Date: Mon, 22 Jun 2020 21:16:13 +0200 From: Peter Zijlstra To: Dave Chinner Cc: Waiman Long , "Darrick J. Wong" , Ingo Molnar , Juri Lelli , Vincent Guittot , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Qian Cai , Eric Sandeen , Andrew Morton Subject: Re: [PATCH v2 1/2] sched: Add PF_MEMALLOC_NOLOCKDEP flag Message-ID: <20200622191613.GB2483@worktop.programming.kicks-ass.net> References: <20200617175310.20912-1-longman@redhat.com> <20200617175310.20912-2-longman@redhat.com> <20200618000110.GF2005@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618000110.GF2005@dread.disaster.area> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 10:01:10AM +1000, Dave Chinner wrote: > And, really, if we are playing "re-use existing bits" games because > we've run out of process flags, all these memalloc flags should be > moved to a new field in the task, say current->memalloc_flags. You > could also move PF_SWAPWRITE, PF_LOCAL_THROTTLE, and PF_KSWAPD into > that field as well as they are all memory allocation context process > flags... FWIW There's still 23 bits free after task_struct::in_memstall. That word has 'current only' semantics, just like PF.