fs/exec.c: move ->recursion_depth out of critical sections
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 14 May 2019 22:44:37 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 02:52:50 +0000 (19:52 -0700)
commitd53ddd0181d1c284c28c0d70a3d7039db41c6f7e
tree9c7845ae24e6235ed6bb7a054bf2c619e51aed6a
parentb028fb612849add771679c1b99a50d99264c9632
fs/exec.c: move ->recursion_depth out of critical sections

->recursion_depth is changed only by current, therefore decrementing can
be done without taking any locks.

Link: http://lkml.kernel.org/r/20190417213150.GA26474@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c