Re: [PATCH] [23/31] HWPOISON: add memory cgroup filter

From: Andi Kleen
Date: Mon Dec 14 2009 - 07:53:40 EST


Wu Fengguang <fengguang.wu@xxxxxxxxx> writes:
>
> We could keep an fd open on the desired cgroup, in user space:
>
> #!/bin/bash
>
> mkdir /cgroup/hwpoison && \
> exec 9<>/cgroup/hwpoison/tasks || exit 1
>
> A bit simpler than an in-kernel fget_light() or CSS refcount :)

FYI, I decided to not do any of this in .33, but just keep the
ugly-but-working inode hack. We can look at fixing that for .34.
These interfaces are debugfs, so can be changed.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/