Re: [PATCH v5 00/17] Reference count checker and related fixes

Adrian Hunter
2023-04-04T17:29:35Z

On 4/04/23 18:58, Ian Rogers wrote:
> Ping. It would be nice to have this landed or at least the first 10
> patches that refactor the map API and are the bulk of the
> lines-of-code changed. Having those landed would make it easier to
> rebase in the future, but I also think the whole series is ready to
> go.

I was wondering if the handling of dynamic data like struct map makes
any sense at present. Perhaps someone can reassure me.

A struct map can be updated when an MMAP event is processed. So it
seems like anything racing with event processing is already broken, and
reference counting / locking cannot help - unless there is also
copy-on-write (which there isn't at present)?

For struct maps, referencing it while simultaneously processing
events seems to make even less sense?