From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229AbbKBLCR (ORCPT ); Mon, 2 Nov 2015 06:02:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:41857 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbbKBLCN (ORCPT ); Mon, 2 Nov 2015 06:02:13 -0500 Message-ID: <1446462031.25345.15.camel@suse.com> Subject: Re: [PATCH 0/3] PM, vfs: use filesystem freezing instead of kthread freezer From: Oliver Neukum To: Jiri Kosina Cc: "Rafael J. Wysocki" , Alan Stern , Pavel Machek , "Rafael J. Wysocki" , Dave Chinner , Jan Kara , Christoph Hellwig , Linus Torvalds , Al Viro , Tejun Heo , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-pm@vger.kernel.org Date: Mon, 02 Nov 2015 12:00:31 +0100 In-Reply-To: References: <6015070.Gclh0s3EvS@vostro.rjw.lan> <2258525.D9qdTJBeTN@vostro.rjw.lan> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2015-11-02 at 11:45 +0100, Jiri Kosina wrote: > > For example, if user space does a "read" or "write" on a character > device > > which is runtime-suspended at that point, the driver may want to > resume the > > device temporarily, carry out the operation and suspend it again, > but that > > generally won't work for the system suspend case. > > But why would this even be relevant in this discussion, given that at > the > point we are talking about, the whole userspace has been frozen > already? It really doesn't matter whether the thread in question is a kernel thread or user space. Device detection is even worse. Kernel threads that do either of these things must stop at defined points. You can use the freezer or go to another mechanism. I just doubt they'd act much different in the end. Regards Oliver