diff options
-rw-r--r-- | kernel/hung_task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/hung_task.c b/kernel/hung_task.c index 481ca8b5c2bc..3951a80e7cbe 100644 --- a/kernel/hung_task.c +++ b/kernel/hung_task.c | |||
@@ -155,7 +155,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout) | |||
155 | if (test_taint(TAINT_DIE) || did_panic) | 155 | if (test_taint(TAINT_DIE) || did_panic) |
156 | return; | 156 | return; |
157 | 157 | ||
158 | read_lock(&tasklist_lock); | 158 | rcu_read_lock(); |
159 | do_each_thread(g, t) { | 159 | do_each_thread(g, t) { |
160 | if (!--max_count) | 160 | if (!--max_count) |
161 | goto unlock; | 161 | goto unlock; |
@@ -171,7 +171,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout) | |||
171 | check_hung_task(t, now, timeout); | 171 | check_hung_task(t, now, timeout); |
172 | } while_each_thread(g, t); | 172 | } while_each_thread(g, t); |
173 | unlock: | 173 | unlock: |
174 | read_unlock(&tasklist_lock); | 174 | rcu_read_unlock(); |
175 | } | 175 | } |
176 | 176 | ||
177 | static void update_poll_jiffies(void) | 177 | static void update_poll_jiffies(void) |