Re: [PATCH v1 12/15] md/raid5-cache: Add RCU protection to conf->log accesses

From: Logan Gunthorpe
Date: Tue May 24 2022 - 12:14:15 EST




On 2022-05-23 12:15, Song Liu wrote:
> On Sun, May 22, 2022 at 11:47 PM Song Liu <song@xxxxxxxxxx> wrote:
>> Maybe we should move the definition of r5l_log to raid5-log.h?
>
> Or we can use READ_ONCE(conf->log) for most cases.

READ_ONCE() will still generate sparse errors.

Logan