[PATCH openEuler-5.10 18/89] perf/core: Fix data race between perf_event_set_output() and perf_mmap_close()