Re: [RFC PATCH 09/14] ring_buffer: Initialize completions statically in the benchmark
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2015-08-03 18:31:18
Also in:
linux-mm, lkml
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2015-08-03 18:31:18
Also in:
linux-mm, lkml
On Tue, 28 Jul 2015 16:39:26 +0200 Petr Mladek [off-list ref] 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>