Re: [PATCH v2 38/39] util/log: Limit RCUCloseFILE to file closing

2022-04-14 Thread Alex Bennée
Richard Henderson writes: > Use FILE* for global_file. We can perform an rcu_read on that > just as easily as RCUCloseFILE*. This simplifies a couple of > places, where previously we required taking the rcu_read_lock > simply to avoid racing to dereference RCUCloseFile->fd. > > Only allocate

[PATCH v2 38/39] util/log: Limit RCUCloseFILE to file closing

2022-03-26 Thread Richard Henderson
Use FILE* for global_file. We can perform an rcu_read on that just as easily as RCUCloseFILE*. This simplifies a couple of places, where previously we required taking the rcu_read_lock simply to avoid racing to dereference RCUCloseFile->fd. Only allocate the RCUCloseFile prior to call_rcu. Sign