Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [[topic/core-for-CI]] Revert "perf/core: Avoid removing shared pmu_context on unregister"
@ 2022-12-28 10:47 Rodrigo Vivi
  2022-12-28 11:03 ` Rodrigo Vivi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rodrigo Vivi @ 2022-12-28 10:47 UTC (permalink / raw)
  To: intel-gfx; +Cc: Rodrigo Vivi

There's a complete rewrite of the core context handling in
v6.2-rc1. find_pmu_context function used in this commit doesn't
exist anymore. Also, let's first trust the upstream component,
then work with them to get the issue solved if still present,
re-introduce this patch with the old function only if extremely
needed.

This reverts commit 87b32477e514aa9030a405b168581ee11910ea83.
---
 kernel/events/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 930c99e4d89a..c3762a371dc6 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -11528,8 +11528,7 @@ void perf_pmu_unregister(struct pmu *pmu)
 		device_del(pmu->dev);
 		put_device(pmu->dev);
 	}
-	if (!find_pmu_context(pmu->task_ctx_nr))
-		free_pmu_context(pmu);
+	free_pmu_context(pmu);
 	mutex_unlock(&pmus_lock);
 }
 EXPORT_SYMBOL_GPL(perf_pmu_unregister);
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-28 12:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 10:47 [Intel-gfx] [[topic/core-for-CI]] Revert "perf/core: Avoid removing shared pmu_context on unregister" Rodrigo Vivi
2022-12-28 11:03 ` Rodrigo Vivi
2022-12-28 11:40 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for ] " Patchwork
2022-12-28 12:07 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox