From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH] Block: use a freezable workqueue for disk-event polling Date: Fri, 02 Mar 2012 10:51:43 +0100 Message-ID: <4F50982F.7090301@kernel.dk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Rafael J. Wysocki" , Tejun Heo , Steve French , Chris Ball , Jeff Layton , David Airlie , David Howells , Linux-pm mailing list , linux-cifs@vger.kernel.org, linux-mmc@vger.kernel.org, dri-devel@lists.freedesktop.org, keyrings@linux-nfs.org To: Alan Stern Return-path: In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-cifs.vger.kernel.org On 02/17/2012 10:22 PM, Alan Stern wrote: > This patch (as1519) fixes a bug in the block layer's disk-events > polling. The polling is done by a work routine queued on the > system_nrt_wq workqueue. Since that workqueue isn't freezable, the > polling continues even in the middle of a system sleep transition. > > Obviously, polling a suspended drive for media changes and such isn't > a good thing to do; in the case of USB mass-storage devices it can > lead to real problems requiring device resets and even re-enumeration. > > The patch fixes things by creating a new system-wide, non-reentrant, > freezable workqueue and using it for disk-events polling. Thanks Alan, picked up. -- Jens Axboe