diff options
author | 2016-10-11 13:53:40 -0700 | |
---|---|---|
committer | 2016-10-11 15:06:32 -0700 | |
commit | 9c87bcf0a31b338dc8a69a5d251a037565a94e13 (patch) | |
tree | 47c85164ba4bfcbd053dfa3cd68762337bec2a12 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pipe: fix limit checking in alloc_pipe_info() (diff) | |
download | wireguard-linux-9c87bcf0a31b338dc8a69a5d251a037565a94e13.tar.xz wireguard-linux-9c87bcf0a31b338dc8a69a5d251a037565a94e13.zip |
pipe: make account_pipe_buffers() return a value, and use it
This is an optional patch, to provide a small performance
improvement. Alter account_pipe_buffers() so that it returns the
new value in user->pipe_bufs. This means that we can refactor
too_many_pipe_buffers_soft() and too_many_pipe_buffers_hard() to
avoid the costs of repeated use of atomic_long_read() to get the
value user->pipe_bufs.
Link: http://lkml.kernel.org/r/93e5f193-1e5e-3e1f-3a20-eae79b7e1310@gmail.com
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reviewed-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: <socketpair@gmail.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Jens Axboe <axboe@fb.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions