Re: [RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-17 Thread Tejun Heo
On Wed, May 17, 2017 at 04:24:32PM -0400, Waiman Long wrote: > On 05/17/2017 03:23 PM, Tejun Heo wrote: > > Hello, > > > > On Mon, May 15, 2017 at 09:34:06AM -0400, Waiman Long wrote: > >> The kill_css() function may be called more than once under the condition > >> that the css was killed but not

Re: [RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-17 Thread Waiman Long
On 05/17/2017 03:23 PM, Tejun Heo wrote: > Hello, > > On Mon, May 15, 2017 at 09:34:06AM -0400, Waiman Long wrote: >> The kill_css() function may be called more than once under the condition >> that the css was killed but not physically removed yet followed by the >> removal of the cgroup that is h

Re: [RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:34:06AM -0400, Waiman Long wrote: > The kill_css() function may be called more than once under the condition > that the css was killed but not physically removed yet followed by the > removal of the cgroup that is hosting the css. This patch prevents any > harmm f

[RFC PATCH v2 07/17] cgroup: Prevent kill_css() from being called more than once

2017-05-15 Thread Waiman Long
The kill_css() function may be called more than once under the condition that the css was killed but not physically removed yet followed by the removal of the cgroup that is hosting the css. This patch prevents any harmm from being done when that happens. Signed-off-by: Waiman Long --- include/l