All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reza Arbab <arbab@linux.vnet.ibm.com>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	Yaowei Bai <baiyaowei@cmss.chinamobile.com>,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Xishi Qiu <qiuxishi@huawei.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Chen Yucong <slaoub@gmail.com>, Andrew Banman <abanman@sgi.com>,
	Seth Jennings <sjenning@redhat.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH v2] memory-hotplug: fix store_mem_state() return value
Date: Wed, 31 Aug 2016 19:17:51 -0500	[thread overview]
Message-ID: <20160901001751.m3z2snlop2djzqgd@arbab-vm> (raw)
In-Reply-To: <alpine.DEB.2.10.1608311652110.112811@chino.kir.corp.google.com>

On Wed, Aug 31, 2016 at 05:03:25PM -0700, David Rientjes wrote:
>Nope, the return value of changing state from online to online was
>established almost 11 years ago in commit 3947be1969a9.

Fair enough. So if online-to-online is -EINVAL, 

1. Shouldn't 'echo 1 > online' then also return -EINVAL?

2. store_mem_state() still needs a tweak, right? It was only returning 
-EINVAL by accident, due to the convoluted sequence I listed in the 
patch.

-- 
Reza Arbab

WARNING: multiple messages have this Message-ID (diff)
From: Reza Arbab <arbab@linux.vnet.ibm.com>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	Yaowei Bai <baiyaowei@cmss.chinamobile.com>,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Xishi Qiu <qiuxishi@huawei.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Chen Yucong <slaoub@gmail.com>, Andrew Banman <abanman@sgi.com>,
	Seth Jennings <sjenning@redhat.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH v2] memory-hotplug: fix store_mem_state() return value
Date: Wed, 31 Aug 2016 19:17:51 -0500	[thread overview]
Message-ID: <20160901001751.m3z2snlop2djzqgd@arbab-vm> (raw)
In-Reply-To: <alpine.DEB.2.10.1608311652110.112811@chino.kir.corp.google.com>

On Wed, Aug 31, 2016 at 05:03:25PM -0700, David Rientjes wrote:
>Nope, the return value of changing state from online to online was
>established almost 11 years ago in commit 3947be1969a9.

Fair enough. So if online-to-online is -EINVAL, 

1. Shouldn't 'echo 1 > online' then also return -EINVAL?

2. store_mem_state() still needs a tweak, right? It was only returning 
-EINVAL by accident, due to the convoluted sequence I listed in the 
patch.

-- 
Reza Arbab

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2016-09-01  0:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05 19:07 [PATCH v2] memory-hotplug: fix store_mem_state() return value Reza Arbab
2016-05-26 14:43 ` Reza Arbab
2016-05-26 15:34   ` Greg Kroah-Hartman
2016-05-26 15:35     ` Greg Kroah-Hartman
2016-08-31 12:21   ` Greg Kroah-Hartman
2016-08-31 14:37     ` Reza Arbab
2016-08-31 15:01       ` Greg Kroah-Hartman
2016-08-31 15:44         ` [RESEND PATCH " Reza Arbab
2016-08-31 15:44           ` Reza Arbab
2016-08-31 20:25           ` Andrew Morton
2016-08-31 20:25             ` Andrew Morton
2016-08-31 21:06             ` David Rientjes
2016-08-31 21:06               ` David Rientjes
2016-08-31 23:38               ` Reza Arbab
2016-08-31 23:38                 ` Reza Arbab
2016-09-01  0:03                 ` David Rientjes
2016-09-01  0:03                   ` David Rientjes
2016-09-01  0:17                   ` Reza Arbab [this message]
2016-09-01  0:17                     ` Reza Arbab
2016-09-01  0:28                     ` David Rientjes
2016-09-01  0:28                       ` David Rientjes
2016-09-01  1:57                       ` Reza Arbab
2016-09-01  1:57                         ` Reza Arbab
2016-08-31 14:38     ` Reza Arbab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160901001751.m3z2snlop2djzqgd@arbab-vm \
    --to=arbab@linux.vnet.ibm.com \
    --cc=abanman@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=baiyaowei@cmss.chinamobile.com \
    --cc=dan.j.williams@intel.com \
    --cc=david.vrabel@citrix.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=qiuxishi@huawei.com \
    --cc=rientjes@google.com \
    --cc=sjenning@redhat.com \
    --cc=slaoub@gmail.com \
    --cc=vbabka@suse.cz \
    --cc=vkuznets@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.