lkml.org 
[lkml]   [2014]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] blk-mq: initialize struct request fields individually
On 05/06/2014 04:12 AM, Christoph Hellwig wrote:
> This allows us to avoid a non-atomic memset over ->atomic_flags as well
> as killing lots of duplicate initializations.

I had an earlier variant of this as well, they are quite a few fields we
can neglect to initialize. But I think this is a safe start, however,
and we can always optimize it on top of it. Perhaps even start to
separate struct request a bit, so we can safely memset parts of it easily.




\
 
 \ /
  Last update: 2014-05-08 23:41    [W:0.236 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site