Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932963Ab2J3LaU (ORCPT ); Tue, 30 Oct 2012 07:30:20 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47843 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932771Ab2J3LaR (ORCPT ); Tue, 30 Oct 2012 07:30:17 -0400 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 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 Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 28 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 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/