Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754644Ab2JVTSc (ORCPT ); Mon, 22 Oct 2012 15:18:32 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:53484 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752813Ab2JVTSa (ORCPT ); Mon, 22 Oct 2012 15:18:30 -0400 Date: Mon, 22 Oct 2012 15:18:29 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Ming Lei cc: linux-kernel@vger.kernel.org, Oliver Neukum , Minchan Kim , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jens Axboe , "David S. Miller" , Andrew Morton , , , , , Eric Dumazet , David Decotigny , Tom Herbert , Ingo Molnar Subject: Re: [RFC PATCH v2 4/6] net/core: apply pm_runtime_set_memalloc_noio on network devices In-Reply-To: <1350894794-1494-5-git-send-email-ming.lei@canonical.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 18 On Mon, 22 Oct 2012, Ming Lei wrote: > Deadlock might be caused by allocating memory with GFP_KERNEL in > runtime_resume callback of network devices in iSCSI situation, so > mark network devices and its ancestor as 'memalloc_noio_resume' > with the introduced pm_runtime_set_memalloc_noio(). Is this really needed? Even with iSCSI, doesn't register_disk() have to be called for the underlying block device? And given your 3/6 patch, wouldn't that mark the network device? Alan Stern -- 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/