From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx170.postini.com [74.125.245.170]) by kanga.kvack.org (Postfix) with SMTP id 46FCC6B002B for ; Tue, 30 Oct 2012 07:30:16 -0400 (EDT) Received: from mail-ea0-f169.google.com ([209.85.215.169]) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1TTA1P-0006ty-58 for linux-mm@kvack.org; Tue, 30 Oct 2012 11:30:15 +0000 Received: by mail-ea0-f169.google.com with SMTP id k11so91982eaa.14 for ; Tue, 30 Oct 2012 04:30:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <2149424.HsnQpSLjK5@linux-lqwf.site> References: <1351513440-9286-3-git-send-email-ming.lei@canonical.com> <2149424.HsnQpSLjK5@linux-lqwf.site> Date: Tue, 30 Oct 2012 19:30:14 +0800 Message-ID: Subject: Re: [PATCH v3 2/6] PM / Runtime: introduce pm_runtime_set[get]_memalloc_noio() From: Ming Lei Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Oliver Neukum Cc: Alan Stern , linux-kernel@vger.kernel.org, Minchan Kim , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jens Axboe , "David S. Miller" , Andrew Morton , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Hi, On Tue, Oct 30, 2012 at 6:57 PM, Oliver Neukum wrote: > how is this to work with power management domains? Could you explain it in a bit detail? Why is PM domain involved? Suppose PM domain is involved, its domain runtime_resume callback is still run in the context with PF_MEMALLOC_NOIO flag set if the affected 'device' is passed to the callback. > And I may be dense, but disks are added in slave_configure(). > This seems to be a race to me. Sorry, could you describe what is the race? Suppose drivers set correct parent device to the disk device(gendisk), then add the disk into device model via register_disk(), the solution should be fine. Thanks, -- Ming Lei -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org