Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758AbbELGMc (ORCPT ); Tue, 12 May 2015 02:12:32 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43681 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354AbbELGM3 (ORCPT ); Tue, 12 May 2015 02:12:29 -0400 Message-ID: <1431411098.5048.3.camel@suse.com> Subject: Re: [PATCH 1/1] suspend: delete sys_sync() From: Oliver Neukum To: Len Brown Cc: Henrique de Moraes Holschuh , Alan Stern , "Rafael J. Wysocki" , One Thousand Gnomes , Linux PM list , "linux-kernel@vger.kernel.org" , Len Brown Date: Tue, 12 May 2015 08:11:38 +0200 In-Reply-To: References: <4290667.ZqInAykFGS@vostro.rjw.lan> <20150509202518.GB20282@khazad-dum.debian.net> 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 Content-Length: 759 Lines: 21 On Mon, 2015-05-11 at 16:34 -0400, Len Brown wrote: > But upon reflection, I do not believe that the kernel is adding value > here, > instead it is imposing a policy, and that policy decision is sometimes > prohibitively expensive. > User-space can do this for itself (and in the case of desktop distros, > already does), > and so the kernel should butt-out. There is however a race condition with doing it in user space. So adding a parameter to select behavior would increase safety a bit. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/