diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2017-11-21 15:08:07 +1100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-01-24 19:49:05 -0600 |
commit | 3cecf4865cd3ea31272750edf38e73c59ff7540c (patch) | |
tree | e3d41786d5e4390eaae2b1def522ca9f65a47dff /tools/perf/scripts/python/check-perf-trace.py | |
parent | 305428acf02490dfaf68d2052d03fe2d74cad241 (diff) |
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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions