]> git.baikalelectronics.ru Git - kernel.git/commit
proc: get rid of task lock/unlock pair to read umask for the "status" file
authorMateusz Guzik <mguzik@redhat.com>
Tue, 10 Apr 2018 23:30:51 +0000 (16:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:33 +0000 (10:28 -0700)
commitd20b69b67c727f6f33bed26bc6874948292946e1
tree30b9c8ebe459df3573b2fcef6ee15cf2a7f837f1
parent224d7dfa5d88b222fdd34c28993eaba7e675feaa
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/1517995608-23683-1-git-send-email-mguzik@redhat.com
Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/array.c