Thread (28 messages) 28 messages, 4 authors, 2012-06-28

Re: [PATCH v3 6/6] remove __must_check for res_counter_charge_nofail()

From: KAMEZAWA Hiroyuki <hidden>
Date: 2012-05-15 00:04:39
Also in: linux-mm, lkml

(2012/05/15 5:09), Tejun Heo wrote:
On Fri, May 11, 2012 at 06:53:08PM +0900, KAMEZAWA Hiroyuki wrote:
quoted
I picked this up from Costa's slub memcg series. For fixing added warning
by patch 4.
==
From: Glauber Costa <redacted>
Subject: [PATCH 6/6] remove __must_check for res_counter_charge_nofail()

Since we will succeed with the allocation no matter what, there
isn't the need to use __must_check with it. It can very well
be optional.

Signed-off-by: Glauber Costa <redacted>
Signed-off-by: KAMEZAWA Hiroyuki <redacted>
For 3-6,

 Reviewed-by: Tejun Heo [off-list ref]

Thanks a lot for doing this.  This doesn't solve all the failure paths
tho.  ie. what about -EINTR failures from lock contention?
pre_destroy() would probably need delay and retry logic with
WARN_ON_ONCE() on !-EINTR failures.

Yes, I'll do more work. I tend to split series, sorry.

Thanks,
-Kame
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help