Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8638710imu; Tue, 4 Dec 2018 11:35:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/W39kDqUUqq0NOiX3NHl9sJGmb9KdpkvtIOKDTF0zBXT1QTs4k265PNA7NlOP+spDxHlr X-Received: by 2002:a63:da14:: with SMTP id c20mr17017763pgh.233.1543952123653; Tue, 04 Dec 2018 11:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543952123; cv=none; d=google.com; s=arc-20160816; b=c/M3wKGOtbf7icWvEKtQ45Ks5kGAQysKjKZRLCvHWZs0j6DHdlAL+0NDeBy1yi5Q3O U3EssA3T+fVd39Y/MZptq/F3zC4EKvrF1FkqwtQ/yBFkOqVuYxl1Ci+moxyMV74SboxI JcLfYaYhjI0+xFC+4dDpnHYWs+aKqnr5IjVo9xbppWX/jrktpmr7jX8wjJyn9epOLy8b +GBrswol7B6Yil3spNZnmFM/UH1EsoK3KgAhoZ4idMSNJv0eSGEctndo+Dq/NPSCWLus rYwth6qpxO5bYQ6rbD5RT6+TTXiSliT2P5EMB60fBbzH7oGt4KlAiyoJ4xOx5soWtCDf MJjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nD/XFtR4UmMT9lKfdvocO5nslzuqWh3QvhkIFnNL0z8=; b=vFiA/o6HRU1dUh5fgFHSQpzajxpQp/ZvfQzzc8xD0kENFlr7Sa6Heby6JkWi7/Sr3O mij7k7LqAOoH+rLxxOugzk5KimEK+OtBTjcaVaFMYmfF2HEgXgMzw+0QgyN882HJBsYk tTwbBRHGw1te9zxq7/EctyuRgFaejZ/AERHL9JxDuFzzO2fhCOTuP1yTBA0+5WpV4hJ6 /8Kzb4ke+vCuCRBHCukuCUuHC1JPXRR2tIAvbh5GjIsCjmcDvVMgtA646U9ykFKZZ+zj /IMDrEc2mFMUJFwNDConlfRlJJhWIs80G3c4/+8WkGZSByR/NRLPYR0PZ4ErcVG8HCd5 OZXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Hs6mcaN1; 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 3si18718070plx.33.2018.12.04.11.35.08; Tue, 04 Dec 2018 11:35:23 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Hs6mcaN1; 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 S1726172AbeLDTeH (ORCPT + 99 others); Tue, 4 Dec 2018 14:34:07 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38360 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeLDTeH (ORCPT ); Tue, 4 Dec 2018 14:34:07 -0500 Received: by mail-lf1-f68.google.com with SMTP id p86so12872602lfg.5 for ; Tue, 04 Dec 2018 11:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nD/XFtR4UmMT9lKfdvocO5nslzuqWh3QvhkIFnNL0z8=; b=Hs6mcaN1DnoMeSm1wWgWpvwPANZhvqle8Lh8124W5YsMM42yp/70vVXQbw6hWHC5Sv 10Wue/CktDau6Ol9HerhltDd4Kr0Qhfxu1W5lB+DVWtEPsma+vBcBCY1GIKMZp2AnBlc 01OhQjB57/+2LlHLFy6znABseQ3VtR0peR7GA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nD/XFtR4UmMT9lKfdvocO5nslzuqWh3QvhkIFnNL0z8=; b=Fmd2/LytYAuiDoF0qjsuB/ECIgCQDafLnrj3tMl1S220UbJOUwpdcM5ky5Ei5A+iX3 yIgn4Byw90Qel19Orohib/ak4bWcTYHH5Dlog8wrqXTbe93qeGUBxidkjsp4LkSEohMy jBCnjzPhzII80qZBgHEVrIc7Be0fS5Rl5mxu6vZGUn4uazxFJzFBOgLtiE7cd0biXYxL rq07UK2LB+EvCJh+HTH8sOHaAVBn5fPPribesbd1rUbc91W774aUwV/ui0UieYiO7MZP 3eHN5nQj14DtkpjTuMMwSh4cokETXnuZP1DdFU44kNuCkjj5pkwicvM9xmXKdJZlqd7j WFcA== X-Gm-Message-State: AA+aEWZU+wOuj42xeHtkOBaQ9SKoaq62YnSxRKs+3h7gjOqUsB6rRsmA wk7Ni3RBbYkA2k5M3LibjTDoN9eqwEo= X-Received: by 2002:a19:2755:: with SMTP id n82mr4964819lfn.94.1543952044780; Tue, 04 Dec 2018 11:34:04 -0800 (PST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id c203sm3137674lfe.95.2018.12.04.11.34.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 11:34:03 -0800 (PST) Received: by mail-lf1-f47.google.com with SMTP id p6so12874640lfc.1 for ; Tue, 04 Dec 2018 11:34:03 -0800 (PST) X-Received: by 2002:a19:6e0b:: with SMTP id j11mr13277279lfc.124.1543952042971; Tue, 04 Dec 2018 11:34:02 -0800 (PST) MIME-Version: 1.0 References: <20181203123857.GS31738@dhcp22.suse.cz> <20181203131006.GA10054@amd> <20181203135351.GU31738@dhcp22.suse.cz> <20181203141459.GA14789@amd> <20181203141737.GY31738@dhcp22.suse.cz> <20181204090228.GC73770@gmail.com> <20181204091020.GD1286@dhcp22.suse.cz> <20181204093310.GE73770@gmail.com> <20181204095802.GF1286@dhcp22.suse.cz> <20181204181714.GR1286@dhcp22.suse.cz> In-Reply-To: <20181204181714.GR1286@dhcp22.suse.cz> From: Linus Torvalds Date: Tue, 4 Dec 2018 11:33:46 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4) To: mhocko@kernel.org Cc: Ingo Molnar , pavel@ucw.cz, Oleg Nesterov , Linux List Kernel Mailing , rafael.j.wysocki@intel.com, chanho.min@lge.com, Thomas Gleixner , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 4, 2018 at 10:17 AM Michal Hocko wrote: > > > How about something like we set PF_NOFREEZE when we set PF_EXITING? At > > that point we've pretty much turned into a kernel thread, no? > > Hmm, that doesn't sound like a bad idea but I am not sure it will > help because those threads we are waiting for might be block way before > they reached PF_EXITING. Yeah, looks that way. We've got the whole "zap_other_threads() -> actually starting the exit" window, which is probably much bigger than the "start the exit -> release_task" window. So we'd have to mark things non-freezable at zap time, not at exit time, and that's a lot more questionable. Looking at this, I'm agreeing that ot would be better to just try to narrow down the cred_guard_mutex use a lot. Oleg, if you had patch that got push-back for that, maybe this problem is now the impetus for people to say "yeah, that's not nice but we clearly need to do it". I'm not finding any old emails on this, but considering I redid my email setup recently, that doesn't necessarily mean much. Linus