Re: [RFC PATCH 09/14] ring_buffer: Initialize completions statically in the benchmark

From: Steven Rostedt
Date: Mon Aug 03 2015 - 14:31:21 EST


On Tue, 28 Jul 2015 16:39:26 +0200
Petr Mladek <pmladek@xxxxxxxx> wrote:

> It looks strange to initialize the completions repeatedly.
>
> This patch uses static initialization. It simplifies the code
> and even helps to get rid of two memory barriers.

There was a reason I did it this way and did not use static
initializers. But I can't recall why I did that. :-/

I'll have to think about this some more.

-- Steve

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