Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323625
b: refs/heads/master
c: 72ef379
h: refs/heads/master
i:
  323623: c9e0588
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jul 31, 2012
1 parent 4c382b2 commit bbefe73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 647664eaf4033501739ac1f42dd52ce8c9266ccc
refs/heads/master: 72ef3794c5cd5f5f0e6355c24a529224c449cd14
4 changes: 2 additions & 2 deletions trunk/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ static __kprobes void kprobe_optimizer(struct work_struct *work)
{
LIST_HEAD(free_list);

mutex_lock(&kprobe_mutex);
/* Lock modules while optimizing kprobes */
mutex_lock(&module_mutex);
mutex_lock(&kprobe_mutex);

/*
* Step 1: Unoptimize kprobes and collect cleaned (unused and disarmed)
Expand All @@ -586,8 +586,8 @@ static __kprobes void kprobe_optimizer(struct work_struct *work)
/* Step 4: Free cleaned kprobes after quiesence period */
do_free_cleaned_kprobes(&free_list);

mutex_unlock(&kprobe_mutex);
mutex_unlock(&module_mutex);
mutex_unlock(&kprobe_mutex);

/* Step 5: Kick optimizer again if needed */
if (!list_empty(&optimizing_list) || !list_empty(&unoptimizing_list))
Expand Down

0 comments on commit bbefe73

Please sign in to comment.