Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756037Ab3END4z (ORCPT ); Mon, 13 May 2013 23:56:55 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:55977 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755606Ab3END4x (ORCPT ); Mon, 13 May 2013 23:56:53 -0400 MIME-Version: 1.0 In-Reply-To: <5191AD65.7090105@huawei.com> References: <1368498506-25857-1-git-send-email-yinghai@kernel.org> <1368498506-25857-3-git-send-email-yinghai@kernel.org> <5191AD65.7090105@huawei.com> Date: Mon, 13 May 2013 20:56:53 -0700 X-Google-Sender-Auth: bRegfUiIK-2dlbHp2TiizZ_DsyE Message-ID: Subject: Re: [PATCH 2/7] PCI: move resources and bus_list releasing to pci_release_dev From: Yinghai Lu To: Yijing Wang Cc: Bjorn Helgaas , Gu Zheng , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List 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: 812 Lines: 23 On Mon, May 13, 2013 at 8:20 PM, Yijing Wang wrote: > On 2013/5/14 10:28, Yinghai Lu wrote: >> We should not release resource in pci_destroy that is too early > > Hi Yinghai, > "too early" means that after pci_stop_dev(), if someone else > hold the device reference, it still care the device resource ? e.g.? I don't mean that. > >> as there could be still other use hold reference. purpose is: move res releasing as late as possible. so pci_stop_and_remove_bus_device could be called several times for nested removing via sys. Yinghai -- 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/