diff options
author | KOSAKI Motohiro <[email protected]> | 2010-08-19 14:13:39 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-08-20 09:34:55 -0700 |
commit | b52723c5607f7684c2c0c075f86f86da0d7fb6d0 (patch) | |
tree | 97db08ef9d74c8fcacff6a96070854a5bc276419 /tools/perf/scripts/python/sctop.py | |
parent | be71cf2202971e50ce4953d473649c724799eb8a (diff) |
oom: fix tasklist_lock leak
Commit 0aad4b3124 ("oom: fold __out_of_memory into out_of_memory")
introduced a tasklist_lock leak. Then it caused following obvious
danger warnings and panic.
================================================
[ BUG: lock held when returning to user space! ]
------------------------------------------------
rsyslogd/1422 is leaving the kernel with locks still held!
1 lock held by rsyslogd/1422:
#0: (tasklist_lock){.+.+.+}, at: [<ffffffff810faf64>] out_of_memory+0x164/0x3f0
BUG: scheduling while atomic: rsyslogd/1422/0x00000002
INFO: lockdep is turned off.
This patch fixes it.
Signed-off-by: KOSAKI Motohiro <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions