Re: [PATCH 0/2] suck some poison out of cgroups' linked lists

From: ext Christoph Hellwig
Date: Tue Mar 15 2011 - 10:12:49 EST


On Tue, Mar 15, 2011 at 04:01:53PM +0200, Phil Carmody wrote:
> > > 2) Ensure that you never leave poison anywhere where you might want
> > > to use list_empty().
> >
> > The correct way is to use list_del_init() if you want to do list_empty
> > checks later on.
>
> I.e. (2). Glad I chose that one.

Yes - sorry didn't see the actual patches before.

--
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/