diff options
author | 2013-10-01 17:42:03 -0400 | |
---|---|---|
committer | 2013-10-05 17:27:40 -0700 | |
commit | 91270162bf8a86bee756da7e931591d9953cb5a8 (patch) | |
tree | 086f17394395fdaadd0ddbc3761a3115c9c032c2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sysfs: use seq_file when reading regular files (diff) | |
download | wireguard-linux-91270162bf8a86bee756da7e931591d9953cb5a8.tar.xz wireguard-linux-91270162bf8a86bee756da7e931591d9953cb5a8.zip |
sysfs: skip bin_buffer->buffer while reading
After b31ca3f5dfc ("sysfs: fix deadlock"), bin read() first writes
data to bb->buffer and bounces it to a transient kernel buffer which
is then copied out to userland. The double bouncing doesn't add
anything. Let's just use the transient buffer directly.
While at it, rename @temp to @buf for clarity.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions