perf_event: Switch to internal refcount, fix race with close()
[profile/ivi/kernel-adaptation-intel-automotive.git] / include / linux / perf_event.h
index b1f8912..b669be6 100644 (file)
@@ -794,7 +794,7 @@ struct perf_event {
        struct hw_perf_event            hw;
 
        struct perf_event_context       *ctx;
-       struct file                     *filp;
+       atomic_long_t                   refcount;
 
        /*
         * These accumulate total time (in nanoseconds) that children