diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/audit_tree.c | 2 | ||||
| -rw-r--r-- | kernel/audit_watch.c | 2 | ||||
| -rw-r--r-- | kernel/events/core.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index 67ccf0e7cca9..135944a7b28a 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c | |||
| @@ -916,7 +916,7 @@ static int audit_tree_handle_event(struct fsnotify_group *group, | |||
| 916 | struct fsnotify_mark *inode_mark, | 916 | struct fsnotify_mark *inode_mark, |
| 917 | struct fsnotify_mark *vfsmount_mark, | 917 | struct fsnotify_mark *vfsmount_mark, |
| 918 | u32 mask, void *data, int data_type, | 918 | u32 mask, void *data, int data_type, |
| 919 | const unsigned char *file_name) | 919 | const unsigned char *file_name, u32 cookie) |
| 920 | { | 920 | { |
| 921 | return 0; | 921 | return 0; |
| 922 | } | 922 | } |
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 2596fac5dcb4..70b4554d2fbe 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
| @@ -471,7 +471,7 @@ static int audit_watch_handle_event(struct fsnotify_group *group, | |||
| 471 | struct fsnotify_mark *inode_mark, | 471 | struct fsnotify_mark *inode_mark, |
| 472 | struct fsnotify_mark *vfsmount_mark, | 472 | struct fsnotify_mark *vfsmount_mark, |
| 473 | u32 mask, void *data, int data_type, | 473 | u32 mask, void *data, int data_type, |
| 474 | const unsigned char *dname) | 474 | const unsigned char *dname, u32 cookie) |
| 475 | { | 475 | { |
| 476 | struct inode *inode; | 476 | struct inode *inode; |
| 477 | struct audit_parent *parent; | 477 | struct audit_parent *parent; |
diff --git a/kernel/events/core.c b/kernel/events/core.c index 56003c6edfd3..fa0b2d4ad83c 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
| @@ -7856,14 +7856,14 @@ static void perf_pmu_rotate_stop(struct pmu *pmu) | |||
| 7856 | static void __perf_event_exit_context(void *__info) | 7856 | static void __perf_event_exit_context(void *__info) |
| 7857 | { | 7857 | { |
| 7858 | struct perf_event_context *ctx = __info; | 7858 | struct perf_event_context *ctx = __info; |
| 7859 | struct perf_event *event, *tmp; | 7859 | struct perf_event *event; |
| 7860 | 7860 | ||
| 7861 | perf_pmu_rotate_stop(ctx->pmu); | 7861 | perf_pmu_rotate_stop(ctx->pmu); |
| 7862 | 7862 | ||
| 7863 | list_for_each_entry_safe(event, tmp, &ctx->pinned_groups, group_entry) | 7863 | rcu_read_lock(); |
| 7864 | __perf_remove_from_context(event); | 7864 | list_for_each_entry_rcu(event, &ctx->event_list, event_entry) |
| 7865 | list_for_each_entry_safe(event, tmp, &ctx->flexible_groups, group_entry) | ||
| 7866 | __perf_remove_from_context(event); | 7865 | __perf_remove_from_context(event); |
| 7866 | rcu_read_unlock(); | ||
| 7867 | } | 7867 | } |
| 7868 | 7868 | ||
| 7869 | static void perf_event_exit_cpu_context(int cpu) | 7869 | static void perf_event_exit_cpu_context(int cpu) |
| @@ -7887,11 +7887,11 @@ static void perf_event_exit_cpu(int cpu) | |||
| 7887 | { | 7887 | { |
| 7888 | struct swevent_htable *swhash = &per_cpu(swevent_htable, cpu); | 7888 | struct swevent_htable *swhash = &per_cpu(swevent_htable, cpu); |
| 7889 | 7889 | ||
| 7890 | perf_event_exit_cpu_context(cpu); | ||
| 7891 | |||
| 7890 | mutex_lock(&swhash->hlist_mutex); | 7892 | mutex_lock(&swhash->hlist_mutex); |
| 7891 | swevent_hlist_release(swhash); | 7893 | swevent_hlist_release(swhash); |
| 7892 | mutex_unlock(&swhash->hlist_mutex); | 7894 | mutex_unlock(&swhash->hlist_mutex); |
| 7893 | |||
| 7894 | perf_event_exit_cpu_context(cpu); | ||
| 7895 | } | 7895 | } |
| 7896 | #else | 7896 | #else |
| 7897 | static inline void perf_event_exit_cpu(int cpu) { } | 7897 | static inline void perf_event_exit_cpu(int cpu) { } |
