diff options
author | Mateusz Guzik <[email protected]> | 2018-04-10 16:30:51 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-11 10:28:33 -0700 |
commit | 68c3411ff4a4cee53cc854c11ed191eaaf1956ba (patch) | |
tree | 30b9c8ebe459df3573b2fcef6ee15cf2a7f837f1 /tools/perf/scripts/python/compaction-times.py | |
parent | 8cfa67b4d9a9d9a6061f3cfd0e0ed16e66e45984 (diff) |
proc: get rid of task lock/unlock pair to read umask for the "status" file
get_task_umask locks/unlocks the task on its own. The only caller does
the same thing immediately after.
Utilize the fact the task has to be locked anyway and just do it once.
Since there are no other users and the code is short, fold it in.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mateusz Guzik <[email protected]>
Reviewed-by: Alexey Dobriyan <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Jerome Marchand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions