Re: [PATCH v4 02/10] coresight: etm-perf: Remove workqueue for freeing AUX data

From: Leo Yan

Date: Thu Nov 12 2026 - 13:09:39 EST


On Fri, Oct 16, 2026 at 11:46:12AM +0100, James Clark wrote:
> AUX cleanup is deferred to a workqueue which is never flushed on module
> unload. Pending work items can therefore run after coresight-config is
> cleaned up or the module text is unloaded.
>
> Since commit 95ff4ca26c49 ("perf/core: Free AUX pages in unmap path"), Perf
> core stops AUX transactions and frees the PMU AUX data from the unmap
> path in non-atomic context. Release the resources directly from the
> free_aux() callback and remove the workqueue.
>
> Fixes: 0bcbf2e30ff2 ("coresight: etm-perf: new PMU driver for ETM tracers")
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>

Reviewed-by: Leo Yan <leo.yan@xxxxxxx>