Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695Ab2JSSUR (ORCPT ); Fri, 19 Oct 2012 14:20:17 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:54321 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194Ab2JSSUO (ORCPT ); Fri, 19 Oct 2012 14:20:14 -0400 MIME-Version: 1.0 In-Reply-To: <508118A6.80804@cn.fujitsu.com> References: <506C0AE8.40702@jp.fujitsu.com> <506C0C53.60205@jp.fujitsu.com> <50727984.20401@cn.fujitsu.com> <507E77D1.3030709@cn.fujitsu.com> <508118A6.80804@cn.fujitsu.com> From: KOSAKI Motohiro Date: Fri, 19 Oct 2012 14:19:53 -0400 X-Google-Sender-Auth: fCohFU0KRzuLk18hhDEepsAk2FM Message-ID: Subject: Re: [PATCH 1/4] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove() To: Wen Congyang Cc: Yasuaki Ishimatsu , x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, rientjes@google.com, liuj97@gmail.com, len.brown@intel.com, cl@linux.com, minchan.kim@gmail.com, akpm@linux-foundation.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: 782 Lines: 19 > Hmm, IIRC, if the memory is recognized from kerenl before driver initialization, > the memory device is not managed by the driver acpi_memhotplug. Yup. > I think we should also deal with REMOVAL_NORMAL here now. Otherwise it will cause > some critical problem: we unbind the device from the driver but we still use > it. If we eject it, we have no chance to offline and remove it. It is very dangerous. ?? If resource was not allocated a driver, a driver doesn't need to deallocate it when error path. I haven't caught your point. -- 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/