Re: [PATCH v3 03/10] eventfs: adding eventfs dir add functions
From: Steven Rostedt
Date: Mon Jul 03 2023 - 15:52:35 EST
On Mon, 3 Jul 2023 18:51:22 +0000
Ajay Kaher <akaher@xxxxxxxxxx> wrote:
> >
> > We can also look to see if we can implement this with RCU. What exactly
> > is this rwsem protecting?
> >
>
> - struct eventfs_file holds the meta-data for file or dir.
> https://github.com/intel-lab-lkp/linux/blob/dfe0dc15a73261ed83cdc728e43f4b3d4e315aae/include/linux/tracefs.h#L28
> - eventfs_rwsem is supposed to protect the 'link-list which is made of struct eventfs_file
> ' and elements of struct eventfs_file.
RCU is usually the perfect solution for protecting link lists though. I'll
take a look at this when I get back to work.
-- Steve