Re: [PATCH v3 08/13] res_counter: return amount of charges after res_counter_uncharge

2012-10-01 Thread Glauber Costa
On 10/01/2012 02:00 PM, Michal Hocko wrote: > On Tue 18-09-12 18:04:05, Glauber Costa wrote: >> It is useful to know how many charges are still left after a call to >> res_counter_uncharge. > >> While it is possible to issue a res_counter_read >> after uncharge, this is racy. It would be better i

Re: [PATCH v3 08/13] res_counter: return amount of charges after res_counter_uncharge

2012-10-01 Thread Michal Hocko
On Tue 18-09-12 18:04:05, Glauber Costa wrote: > It is useful to know how many charges are still left after a call to > res_counter_uncharge. > While it is possible to issue a res_counter_read > after uncharge, this is racy. It would be better if uncharge itself > would tell us what the current s

[PATCH v3 08/13] res_counter: return amount of charges after res_counter_uncharge

2012-09-18 Thread Glauber Costa
It is useful to know how many charges are still left after a call to res_counter_uncharge. While it is possible to issue a res_counter_read after uncharge, this is racy. It would be better if uncharge itself would tell us what the current status is. Since the current return value is void, we don't