Re: [patch 3/4 -mm] flex_array: poison free elements

From: David Rientjes
Date: Wed Sep 09 2009 - 15:34:38 EST


On Wed, 9 Sep 2009, Dave Hansen wrote:

> It shouldn't be too hard to do that, though. Although a bit silly to
> have make a copy_to_user() call for each ->parts[] page, it would be
> pretty easy to implement.
>

Right, but the event buffer becomes slower as a whole because of the
multiple copy_to_user() on read, indirection into each flex_array_part,
and add_event_entry() would now require a memcpy.
--
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/