From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: Re: syncing the disks when entering sleep Date: Wed, 10 Feb 2010 11:38:47 +0100 Message-ID: <201002101138.47072.oliver@neukum.org> References: <76FA3B279DD9DA48896E2B404944957204E0B241@USA7061MS02.na.xerox.net> <20100210081354.GA20950@atrey.karlin.mff.cuni.cz> <201002101134.23851.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201002101134.23851.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: linux-pm@lists.linux-foundation.org Cc: Nigel Cunningham , "Leisner, Martin" List-Id: linux-pm@vger.kernel.org Am Mittwoch, 10. Februar 2010 11:34:23 schrieb Rafael J. Wysocki: > Actually, doing the sync() in the kernel is a hack that we decided not to > remove just because the users space didin't do the right thing on some systems. > If the user space always synced disks before suspending, we wouldn't have to > do that in the kernel. If you sync in user space will you not have an inevitable race condition? Regards Oliver