aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <[email protected]>2018-04-10 23:31:01 +0000
committerLinus Torvalds <[email protected]>2018-04-11 17:28:33 +0000
commite7a6e291e30a00061c356bbcba0d9380943a1671 (patch)
tree896f6dbe0a8e1b1aee688b4bd61da4cb21dd7ec4 /fs/proc/array.c
parentproc: move /proc/sysvipc creation to where it belongs (diff)
downloadkernel-e7a6e291e30a00061c356bbcba0d9380943a1671.tar.gz
kernel-e7a6e291e30a00061c356bbcba0d9380943a1671.zip
proc: faster open/close of files without ->release hook
The whole point of code in fs/proc/inode.c is to make sure ->release hook is called either at close() or at rmmod time. All if it is unnecessary if there is no ->release hook. Save allocation+list manipulations under spinlock in that case. Link: http://lkml.kernel.org/r/20180214063033.GA15579@avx2 Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Al Viro <[email protected]> Cc: Kees Cook <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions