Re: + shm-fix-a-race-between-shm_exit-and-shm_init.patch added to-mm tree
From: Oleg Nesterov
Date: Wed Aug 03 2011 - 15:21:38 EST
On 08/03, Vasiliy Kulikov wrote:
>
> On Wed, Aug 03, 2011 at 16:04 +0200, Oleg Nesterov wrote:
> >
> > And since we rely on .in_use == 0, why we can't move this check
> > outside of down_write/up_right to a) optimize the code and b)
> > fix the problem?
>
> Agreed. But I second Linus that partial initialization only hides the
> real problem. And some initcall chain movement is still needed.
I agree. But, until then, we can make a much more simple fix.
Especially because this patch (imho) mostly hides the problem too.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/