Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753847AbbDMNY0 (ORCPT ); Mon, 13 Apr 2015 09:24:26 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:62330 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750999AbbDMNYX convert rfc822-to-8bit (ORCPT ); Mon, 13 Apr 2015 09:24:23 -0400 From: "Rafael J. Wysocki" To: Hanjun Guo Cc: linux-acpi@vger.kernel.org, Xie XiuQi , guohanjun@huawei.com, linux-kernel@vger.kernel.org, Toshi Kani Subject: Re: [PATCH] ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline() Date: Mon, 13 Apr 2015 15:48:53 +0200 Message-ID: <9790151.kO7BNWOEJr@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <552B7DE4.3070008@linaro.org> References: <1428397392-26200-1-git-send-email-xiexiuqi@huawei.com> <2181841.0nPiIAbDNm@vostro.rjw.lan> <552B7DE4.3070008@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1447 Lines: 37 On Monday, April 13, 2015 04:27:16 PM Hanjun Guo wrote: > On 2015年04月11日 07:31, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > acpi_scan_is_offline() may be called under the physical_node_lock > > of the given device object's parent, so prevent lockdep from > > complaining about that by annotating that instance with > > SINGLE_DEPTH_NESTING. > > I think this is trigged by setting acpi_force_hot_remove to 1, > in acpi_scan_hot_remove(): > > if (device->handler && device->handler->hotplug.demand_offline > && !acpi_force_hot_remove) { > if (!acpi_scan_is_offline(device, true)) > return -EBUSY; > } else { > int error = acpi_scan_try_to_offline(device); > if (error) > return error; > } > > then the container device will be removed by acpi_scan_try_to_offline(), > let's wait for Xiuqi's test result. I'm not sure what you mean. demand_offline is 'true' for containers, so acpi_force_hot_remove doesn't matter here. -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. -- 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/