From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756626Ab0E0Tcs (ORCPT ); Thu, 27 May 2010 15:32:48 -0400 Received: from ip-70-38-54-39.static.privatedns.com ([70.38.54.39]:48670 "EHLO ginevra.hungrycats.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750968Ab0E0Tcq (ORCPT ); Thu, 27 May 2010 15:32:46 -0400 X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org X-Envelope-Mail-From: vger-linux-omap-esightcorp@mailtoo.hungrycats.org Date: Thu, 27 May 2010 15:32:43 -0400 From: Zygo Blaxell To: Matthew Garrett Cc: Alan Cox , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Florian Mickler , Vitaly Wool , Peter Zijlstra , LKML , Paul@smtp1.linux-foundation.org, felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Message-ID: <20100527193243.GC25663@gibbs.hungrycats.org> References: <20100527003943.07c17f85@lxorguk.ukuu.org.uk> <20100527140655.GA28048@srcf.ucam.org> <20100527160543.2228fc17@lxorguk.ukuu.org.uk> <20100527160714.GB31937@srcf.ucam.org> <20100527174131.18fd1c72@lxorguk.ukuu.org.uk> <20100527165210.GA1062@srcf.ucam.org> <20100527190204.14546caa@lxorguk.ukuu.org.uk> <20100527181239.GF3543@srcf.ucam.org> <20100527194840.5bca973f@lxorguk.ukuu.org.uk> <20100527185658.GA5703@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100527185658.GA5703@srcf.ucam.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2010 at 07:56:58PM +0100, Matthew Garrett wrote: > Even if it's using poll, it could block purely on the display if X turns > the screen off between poll() waking and the write being made. That's what fcntl(fd, F_SETFL, O_NONBLOCK) is for.