Re: [patch for-3.6] fs, debugfs: fix race in u32_array_read andallocate array at open

From: David Rientjes
Date: Mon Sep 24 2012 - 18:26:30 EST


On Fri, 21 Sep 2012, Raghavendra K T wrote:

> I think you meant we can read data only once. second time onwards we don't see
> any data. (except when fd is forked by child/ races in
> threads).
>

You can read(2) as many times as you want after it's opened and will get
persistent data.
--
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/