Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7214278imu; Mon, 3 Dec 2018 09:20:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcDBDtCerDWKNvq/NbuoFNHDtvgbSsOpUUFxYsdG5qQd0FrYYQjpQR41RXF/9FeKZb0tyt X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr16896433plb.192.1543857649023; Mon, 03 Dec 2018 09:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543857648; cv=none; d=google.com; s=arc-20160816; b=g6LxmWx1pY4WGnBZUyXleZrn8jdLG6SAZMgqFhw4HQe7JEh5SNL58llb65HDnZToii i7lBbbPr37fThWSTLG+rzUEphv8vbqNsLcDBwl2r58ET1UX5O3/fFukLDAIdmu6L3La+ uvULWVYdIg/NkHGXVMK9J7auHuUMoXMNKtCm6kN0N6Xqu/SwtkABfp1ul1SyiyAdPPZ4 gRP3PXz/COpY2wr5BIyOMELj2k+CYI3tVBMou2URGQ43nP1mge87n/CqcEQT5mxMddgo SpdhT0W3K8D+wLCkSw+Ndmz00tWEIEzq9UucNYAcSWwGkfN/myDRIYtVGbyfTpUeR2fB Gv5Q== 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=V/96+YpoahDTpQ+dXpw2PabolNmNlKpNHUy21VdjdNw=; b=tFSwNzFnpf+ilbO8FeX0Gvrq9pp3aQrZ5B62avoED4AQWk1nzuYuaPvMbemwEB2i8k FRNv6e6On1IP91Y6YoBd1U+92d2HBEN0S6JXmxZx/9RqCtvfb15yB89XyPQk/YBt9JEh h+Lbb0ZLjODvLIMQcE0b8uq4wfKF7zt9w+hVisGiKYQv08WyCkIou8ldGCnULxeVjbQb Vf+/58T/cDfyQ3+pEuuixzo4RwxIfDXlGAvgcoQay5k4b33WzVj0/S182+CjX7GC5pdh NyBaqcLJV+xZu5f+AhSHdSJ2MvtTE0ET1lPZbsRUvWOzA+Q1EEceUaQTZajrIQYX5hpb THBg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si13878590pll.428.2018.12.03.09.20.26; Mon, 03 Dec 2018 09:20:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726448AbeLCRSI (ORCPT + 99 others); Mon, 3 Dec 2018 12:18:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:33684 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725842AbeLCRSH (ORCPT ); Mon, 3 Dec 2018 12:18:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 95BB6AC52; Mon, 3 Dec 2018 17:18:03 +0000 (UTC) Date: Mon, 3 Dec 2018 18:18:01 +0100 From: Michal Hocko To: Linus Torvalds Cc: pavel@ucw.cz, Oleg Nesterov , Ingo Molnar , Linux List Kernel Mailing , rafael.j.wysocki@intel.com, chanho.min@lge.com, Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4) Message-ID: <20181203171801.GF31738@dhcp22.suse.cz> References: <20181203074700.GA21240@gmail.com> <20181203083942.GF31738@dhcp22.suse.cz> <20181203123149.GB31795@redhat.com> <20181203123857.GS31738@dhcp22.suse.cz> <20181203131006.GA10054@amd> <20181203135351.GU31738@dhcp22.suse.cz> <20181203141459.GA14789@amd> <20181203141737.GY31738@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon 03-12-18 09:06:18, Linus Torvalds wrote: > On Mon, Dec 3, 2018 at 6:17 AM Michal Hocko wrote: > > > > This argument just doesn't make any sense. Rare bugs are maybe even more > > annoying because you do not expect them to happen. > > Absolutely. > > And valid lockdep complaints are a real issue too. No questions about that. But in this case there is no real deadlock so the splat is disputable. And we have a "do not use" freezable_schedule_unsafe which shouldn't tigger the splat yet it would make the suspend issue go away AFIU. Not a great fix and we should target for something better long term but good enough as a poor's man stop gap fix. > So I don't think there's any question that this should be reverted, > the only question is whether I take the revert directly or get it from > the PM tree. > > It does sound like the de_thread() behavior needs more work. Maybe, > for example, we need to make it clear that zapped threads are *not* > frozen, and instead the freezer will wait for them to exit? I was actually proposing something like that during the review discussion. Basically set PF_NOFREEZE all the threads and wake them up. But that is not so simple because they might be at any path when they sleep (this is the biggest design flaw of the freezer IMHO). -- Michal Hocko SUSE Labs