Re: [PATCH 2/9] cgroup: fix error path of cgroup_addrm_files()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013/6/29 7:45, Tejun Heo wrote:
> cgroup_addrm_files() mishandled error return value from
> cgroup_add_file() and returns error iff the last file fails to create.
> As we're in the process of cleaning up file add/rm error handling and
> will reliably propagate file creation failures, there's no point in
> keeping adding files after a failure.
> 
> Replace the broken error collection logic with immediate error return.
> While at it, add lockdep assertions and function comment.
> 
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>

Acked-by: Li Zefan <lizefan@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux