From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753442AbbJZIgT (ORCPT ); Mon, 26 Oct 2015 04:36:19 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:18450 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753049AbbJZIgR (ORCPT ); Mon, 26 Oct 2015 04:36:17 -0400 Message-ID: <562DE4E2.2040401@huawei.com> Date: Mon, 26 Oct 2015 16:31:30 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: , CC: , , Subject: memory-hotplug have such a problem. Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org when I test the memory online or offline, I find the problem that memory online always return an error. I peform the operation as follow: cd /sys/device/system/memory/ echo online > state it always print "-bash: echo: write error: Operation not permitted". By my alalysis, I find that the error happen in the memory_notifier(MEM_GOING_ONLINE,&arg) in the function(online_pages()). The problem occur in the latest kernel versin (linux 4.3.0 -rc4) , but In the lower version (linux 3.10) is correct. I think it may be caused by the confilct. Thanks zhongjiang