summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2017-11-21 07:08:07 +0300
committerSteve French <smfrench@gmail.com>2018-01-25 04:49:05 +0300
commit3cecf4865cd3ea31272750edf38e73c59ff7540c (patch)
treee3d41786d5e4390eaae2b1def522ca9f65a47dff /tools/perf/scripts/python/call-graph-from-sql.py
parent305428acf02490dfaf68d2052d03fe2d74cad241 (diff)
downloadlinux-3cecf4865cd3ea31272750edf38e73c59ff7540c.tar.xz
cifs: avoid a kmalloc in smb2_send_recv/SendReceive2 for the common case
In both functions, use an array of 8 (arbitrary but should be big enough for all current uses) iov and avoid having to kmalloc the array for the common case. If 8 is too small, then fall back to the original behaviour and use kmalloc/kfree. This should not change any behaviour but should save us a tiny amount of cpu cycles. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions