Re: Stable build failures with commit 084457f

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

 



On 2013/7/3 19:20, Luis Henriques wrote:
> Hi,
> 
> While working on backporting commits to the 3.5 kernel, I came across
> this commit which is tagged for stable kernels:
> 
> 084457f284abf6789d90509ee11dae383842b23b cgroup: fix umount vs cgroup_cfts_commit() race
> 
> This commit, however, seems to break the kernel build with the
> following change:
> 
> -	if (cfts && ss->root != &rootnode) {
> +	if (cfts && ss->root != &rootnode &&
> +	    atomic_inc_not_zero(sb->s_active)) {
>                                 ^^^^

Ouch! I always do a compile test for each patch. Don't know how this happened. :(

> It should be atomic_inc_not_zero(sb->s_active) instead, I believe.
> 

I compared this with my change for several minutes but failed to find the difference,
because actually they're the same...

You meant "atomic_inc_not_zero(&sb->s_acitve)". ;)

> This is fixed in a later commit:
> 
> e8c82d20a9f729cf4b9f73043f7fd4e0872bebfd cgroup: convert cgroup_cft_commit() to use cgroup_for_each_descendant_pre()
> 
> Which is not tagged for stable inclusion.
> 

Because that's not a bug fix.

> Could you please advice?  Should stable kernels just drop this patch?
> 

Could you just change (sb->s_active) to (&sb->s_active) when backpoting this patch?

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




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]