Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp342532pxk; Thu, 24 Sep 2020 07:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBI9ySdTRbJrRqVz1hUhSpB57x9Oft31DmT9G+EbM5Pi2Ny56OnqquCNSAe07iuDyoEd+9 X-Received: by 2002:aa7:dcd3:: with SMTP id w19mr62781edu.18.1600956093208; Thu, 24 Sep 2020 07:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600956093; cv=none; d=google.com; s=arc-20160816; b=XLnFlXLMcmMBgoxglX76ep46wS+pmSXnWVbMd+2SwrjFZ6fW6Y9x8cE2/DQr2rEq2H sfhUIIszwBE7oTGMMbSBqriFCYczuhF/FXyR8yc0yanbxsKfW2ee9FGJp+1S2ChlKVwz SOt1fAmso52Z1pK0NYZRKtmDvrnMIBHQ4huZkFg+wNAwsE1xOsp2bcuc3rjWXEwgi6Lc TYKND8iQA1fwL4Ram+YcoNnypwy13i+XubHC77rt1KUQFhJV2pOFCBbo2mmoEWwa770C bbLiCXrpVdqrOEYN6n69RynsA3sBmgH0Eu9WNEe6Nvv6gIVRBbL+wrgENszVLk4125wV +qOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MOgC9OGGeZJDv1+n6/wlwMjXb8lCrwqJ2Nw3weXr+Qc=; b=F3QNWS7HVA/JaM6pIgA8p5xUQTuPUCxKRZu2o0y6SlQPA1JyOZ8PPxZjigGDEyRrXG k5MSCs9e4O2Ew1DUx8mlTcxORNicozVJflse6Xt090DgyDO/oULgxD/2M0cPB6L8+5bG K1AZnWAwXrp+c+NYMQydPoSlMHCW+4rg6kn9+/3dZv7p9HhQICv82CHhGm2rLMPVBB0t I7+/wioZz4EfkMfG8C+ShpUtHWCItdIHvrc/Wyth0XDg402ZijRy7x+R7DUQExBw9Az0 hsgrlkrFHvnsnU5xVOjAMh352r7ExFApX/mMuAFVVs12HVP68qcwY5wR6lYAf5dTLMeH ssrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JsDPpGvH; 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 q24si2361476edi.78.2020.09.24.07.01.08; Thu, 24 Sep 2020 07:01:33 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b=JsDPpGvH; 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 S1728242AbgIXN7o (ORCPT + 99 others); Thu, 24 Sep 2020 09:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbgIXN7f (ORCPT ); Thu, 24 Sep 2020 09:59:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03A6DC0613CE; Thu, 24 Sep 2020 06:59:35 -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=MOgC9OGGeZJDv1+n6/wlwMjXb8lCrwqJ2Nw3weXr+Qc=; b=JsDPpGvHCaRJKTjEp4jfBvIc6f pXZLbwXBu5W8wOQFQmAslu3rcVo3QzDGQFkjChuW6FIVMUFcn9IGZif/AfN2U01WzpkVAz+KFjobU 0jWaSlW3Xn2GQ84V721qkLjzWf+wjf87oufz3kW5JH8rWv+6T3T3JVoKiDNY9dD7MOcGuNMH2PZBs SnzOi2M6Zof+/P1qbt2Khez267c1eK7X/9CbdBAMVey/kVf/aLifYALWXQaU/QkCvZXO+P5xD/kVr VMyquwF/LWZfEYgUe0JzptxCjKKCYhp2fTxOVreYNbgMOT1pBTJrHrmgCpfvBdVmz9xgyChNoHSwP aldNLPLA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLRlA-0003sC-Q7; Thu, 24 Sep 2020 13:58:08 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 671203007CD; Thu, 24 Sep 2020 15:58:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 51F872010B5FA; Thu, 24 Sep 2020 15:58:05 +0200 (CEST) Date: Thu, 24 Sep 2020 15:58:05 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: Thomas Gleixner , Linus Torvalds , LKML , linux-arch , Paul McKenney , the arch/x86 maintainers , Sebastian Andrzej Siewior , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Andrew Morton , Linux-MM , Russell King , Linux ARM , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx , dri-devel , Ard Biesheuvel , Herbert Xu , Vineet Gupta , "open list:SYNOPSYS ARC ARCHITECTURE" , Arnd Bergmann , Guo Ren , linux-csky@vger.kernel.org, Michal Simek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Nick Hu , Greentime Hu , Vincent Chen , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , "David S. Miller" , linux-sparc Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends Message-ID: <20200924135805.GN2628@hirez.programming.kicks-ass.net> References: <87sgbbaq0y.fsf@nanos.tec.linutronix.de> <20200923084032.GU1362448@hirez.programming.kicks-ass.net> <20200923115251.7cc63a7e@oasis.local.home> <874kno9pr9.fsf@nanos.tec.linutronix.de> <20200923171234.0001402d@oasis.local.home> <871riracgf.fsf@nanos.tec.linutronix.de> <20200924083241.314f2102@gandalf.local.home> <20200924124241.GK2628@hirez.programming.kicks-ass.net> <20200924095138.5318d242@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924095138.5318d242@oasis.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 09:51:38AM -0400, Steven Rostedt wrote: > > It turns out, that getting selected for pull-balance is exactly that > > condition, and clearly a migrate_disable() task cannot be pulled, but we > > can use that signal to try and pull away the running task that's in the > > way. > > Unless of course that running task is in a migrate disable section > itself ;-) See my ramblings here: https://lkml.kernel.org/r/20200924082717.GA1362448@hirez.programming.kicks-ass.net My plan was to have the migrate_enable() of the running task trigger the migration in that case.