[Devel] Re: [PATCH v4 08/14] res_counter: return amount of charges after res_counter_uncharge

2012-10-10 Thread Michal Hocko
On Mon 08-10-12 14:06:14, 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 can be racy. > > If we need, for instance, to take some action when the counters dro

[Devel] Re: [PATCH v4 08/14] res_counter: return amount of charges after res_counter_uncharge

2012-10-10 Thread Michal Hocko
On Wed 10-10-12 13:03:39, Glauber Costa wrote: > On 10/09/2012 07:35 PM, Michal Hocko wrote: > > On Tue 09-10-12 19:14:57, Glauber Costa wrote: > >> On 10/09/2012 07:08 PM, Michal Hocko wrote: > >>> As I have already mentioned in my previous feedback this is cetainly not > >>> atomic as you the loc

[Devel] Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-10 Thread Stanislav Kinsbursky
10.10.2012 05:23, J. Bruce Fields пишет: On Tue, Oct 09, 2012 at 03:47:42PM -0700, Eric W. Biederman wrote: "J. Bruce Fields" writes: On Tue, Oct 09, 2012 at 01:20:48PM -0700, Eric W. Biederman wrote: "Myklebust, Trond" writes: On Tue, 2012-10-09 at 15:35 -0400, J. Bruce Fields wrote: Cc

[Devel] Re: [PATCH v4 08/14] res_counter: return amount of charges after res_counter_uncharge

2012-10-10 Thread Glauber Costa
On 10/09/2012 07:35 PM, Michal Hocko wrote: > On Tue 09-10-12 19:14:57, Glauber Costa wrote: >> On 10/09/2012 07:08 PM, Michal Hocko wrote: >>> As I have already mentioned in my previous feedback this is cetainly not >>> atomic as you the lock protects only one group in the hierarchy. How is >>> th