Messages in this thread | | | Date | Fri, 17 Aug 2018 09:08:42 -0700 | From | Tejun Heo <> | Subject | Re: [PATCH RFC] Make call_srcu() available during very early boot |
| |
Hello,
On Tue, Aug 14, 2018 at 10:06:18AM -0700, Paul E. McKenney wrote: > > Is there a way we could make a union, or reuse one of the other fields, > > as we know that synchronize_srcu() can't be used yet (and if it is, > > either warn, or just make it a nop). And when we call srcu_init() and > > remove the srcu_struct from the list, we can then initialize whatever > > we used as the temporary boot up list field. > > I will take a look. If nothing else, I could union it with the > struct work_struct, since it cannot be used that early anyway. ;-) > > Or I could just use the work_struct that is already inside the struct > work_struct. Tejun, would you be OK with that?
Hmm... not super against it given how specialized the whole thing is but maybe just making it a union is cleaner?
Thanks.
-- tejun
| |