[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 38/39] util/log: Limit RCUCloseFILE to file closing
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 38/39] util/log: Limit RCUCloseFILE to file closing |
Date: |
Thu, 14 Apr 2022 16:30:42 +0100 |
User-agent: |
mu4e 1.7.12; emacs 28.1.50 |
Richard Henderson <richard.henderson@linaro.org> 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 the RCUCloseFile prior to call_rcu.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 38/39] util/log: Limit RCUCloseFILE to file closing,
Alex Bennée <=