Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8032729imu; Tue, 4 Dec 2018 01:35:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/WBas9cqbaNnUr8toKffUGtofObiPXA9YQtVaAabhG8WO9/5CAMtBC1TQN/zadNrplfcppS X-Received: by 2002:a63:295:: with SMTP id 143mr15679859pgc.362.1543916152236; Tue, 04 Dec 2018 01:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543916152; cv=none; d=google.com; s=arc-20160816; b=KYvYcq1vqx2jatjgO9efEHdCN6qZ5mPfPgQ/3MOcQMcVu4CC+/wtAyEttCOWn7bsdv WV1AeN77PFFlHUycQ0DVZME1Qbx52qzjjsavzFEtk6QmogjTfDlY8SJNaLtkwrdjoCXP letQNjmjb5BvK8OXhdWZ37bgfOjiUkmSk8xKmMvEjy/roIlLQ7aYSQ6lel2PQ3K1Ve/J +gJnjdXVEPGtaS/W2FX3c2MEEyptLFTtb1ylIRPQcOvbm45rptdRIQR2Uo2K78eFRke3 t7NP0zHT1gpHSUAruBqcm/XPQSQs9RzUzUqniyhZy0jlhKJn9bp+t0AIwRosvQSBZbdO cFeg== 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=/L+Nothtj0/irGbapL65oAuoEL0J39co1kH1poDXbvs=; b=Ovzf0QdaK8dyIXWZASw1ik13Srl+3kicehGJAVz7cF3v+nqYaKdiMMEMbkM6gLZe9G HGa+43h4G8HcjiyKm3KIJcprNuVccz7A+ZaJpmpXcJpDgMxjVopBbMYCMAH63stATX/m /TPqVWYh7Jye2FpzzTfT1yPulUVsMAEyDalYlBGfYSAXGC8P6C/u0frDtuGeR6m8wctB pPElZebEX4WNCPdl9YfIsFgkCAeJw6DOKVYNicsXmHLnXIDMKO8SDlYouPiZWQKorzGr Gb78XUPdoVCIXTPs7SJBElJ5e2dRTOnRxLoaLdZ3t2D3zouqjVDoKzC7w3t3466KM0LH WVBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=koyJQjvu; 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 a10si2364674pgq.270.2018.12.04.01.35.36; Tue, 04 Dec 2018 01:35:52 -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=fail header.i=@gmail.com header.s=20161025 header.b=koyJQjvu; 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 S1726001AbeLDJdP (ORCPT + 99 others); Tue, 4 Dec 2018 04:33:15 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37957 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbeLDJdO (ORCPT ); Tue, 4 Dec 2018 04:33:14 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so15117352wrw.5 for ; Tue, 04 Dec 2018 01:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/L+Nothtj0/irGbapL65oAuoEL0J39co1kH1poDXbvs=; b=koyJQjvuESQv7RzcOwG8XRkDPzW6IlJObYZGzzmB2Rsb/Q4ALjFL53zkmQpz4/77/7 h4JnhVme666tPGJxWYwAXTySGd+gxHklWaAs2B/t0qeJXDvOSpAaPlQS1L8m+30ByUNz aO3Fn6lIPdOWTHWLdtdjiTq6u/GxZR7nJDmkE+vufZy+2QttTWmJERR3/O2kFKUsHfuC w+TkZdHn4LF6wn8Gkl+ZKGdfW8FdroX/SuMAM5GynTDfascr7aTv34BSPpj73EYy16fb 6iwuxdVFA7/E/2NCt6qMfoUZHWNpsvOZEwKZxg53S0vCZWQZ2DmvG02pdWZpfpsmfOQa KWBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=/L+Nothtj0/irGbapL65oAuoEL0J39co1kH1poDXbvs=; b=XKFa3COr0XOMBkZqVRQo0EA4lioDb9wTGhFtb/P2hBex9dI56HfTun+F3NCcdRxLDE 9b8CRYLDAbdJLj6mfrzD7rb5bY3ONSSQhAw9WmCBLbilhpD0IMY52j1PtsnAIfpfY0EW q06UE0V9yFI99mZ/u7rJdtp3sf7epNcGWh/kZVsQnsTgJjyygfmpCJ6uhMsj4B2zJWOS uCPWU3aEWHY+/AjfcqGTBwXp6pevJJqxJXnO3K5MiPF7Dia+3z2F2M43LVInFCa6rS22 nr8qjJ5KSjzjBexYSm4bFeStV+VkFXXwtqEFdQaTnDptjJn4aPpRPZNASJzGU8hZJFXb MtfA== X-Gm-Message-State: AA+aEWYZzLmoo24QiTHJ2HtlxAlY/9ZkVY3yAo8nP4lNUqTbotNP0xDE dIwl1244x8uHZxgTsYokqck= X-Received: by 2002:a5d:694d:: with SMTP id r13mr16660352wrw.323.1543915993168; Tue, 04 Dec 2018 01:33:13 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id d2sm12409357wrs.97.2018.12.04.01.33.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 01:33:12 -0800 (PST) Date: Tue, 4 Dec 2018 10:33:10 +0100 From: Ingo Molnar To: Michal Hocko Cc: Pavel Machek , Oleg Nesterov , Linus Torvalds , Linux List Kernel Mailing , "Rafael J. Wysocki" , Chanho Min , Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4) Message-ID: <20181204093310.GE73770@gmail.com> 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> <20181204090228.GC73770@gmail.com> <20181204091020.GD1286@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181204091020.GD1286@dhcp22.suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Michal Hocko wrote: > I dunno. I do not use hibernation. I am a heavy user of the suspend > though. I s2ram all the time. And I have certainly experienced cases > where suspend has failed and I onlyi found out later when I've picked > up my laptop from my heat up bag. Nothing fatal has resulted from that > but this is certainly annoying. Hm, so I (mistakenly) thought freezing was mostly limited to hibernation and to a few weird cases when in flight DMA must not be suspended - but I'm wrong and in practice we always freeze tasks during s2ram, right? And indeed: config SUSPEND_FREEZER bool "Enable freezer for suspend to RAM/standby" \ if ARCH_WANTS_FREEZER_CONTROL || BROKEN depends on SUSPEND default y which is essentially always enabled on x86. TIL ... s2ram is obviously a huge deal. Just a newbie question: any chance to not do any freezing at all on modern laptops when doing s2ram, or at least only warn if it fails and try to suspend? Because in practice losing power due to failed freezing *will* result in data loss, in about 90% of the time ... So I don't even know what we are trying to protect against by refusing to freeze - avoiding a 0.001% data loss risk against a 90% data loss risk? Thanks, Ingo