diff options
| author | David Rientjes <[email protected]> | 2015-11-05 18:48:05 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-11-05 19:34:48 -0800 |
| commit | da39da3a54fed88e29024f2f1f6cd7357cd03a44 (patch) | |
| tree | ca4bbdc90d4f7e3cf2e7258135380b6b4b0f5fc6 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 2d1e10412c2388ff9b6afc60536eaa195a419289 (diff) | |
mm, oom: remove task_lock protecting comm printing
The oom killer takes task_lock() in a couple of places solely to protect
printing the task's comm.
A process's comm, including current's comm, may change due to
/proc/pid/comm or PR_SET_NAME.
The comm will always be NULL-terminated, so the worst race scenario would
only be during update. We can tolerate a comm being printed that is in
the middle of an update to avoid taking the lock.
Other locations in the kernel have already dropped task_lock() when
printing comm, so this is consistent.
Signed-off-by: David Rientjes <[email protected]>
Suggested-by: Oleg Nesterov <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions