diff options
| author | Stefano Garzarella <[email protected]> | 2021-03-15 16:34:43 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2021-05-03 08:55:53 +0000 |
| commit | bc433e5e0d42d7892dcefb65686c9f1df126923a (patch) | |
| tree | ba1da0720fc678033fadd91874a7c822fdc6c4b3 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | vringh: add vringh_kiov_length() helper (diff) | |
| download | kernel-bc433e5e0d42d7892dcefb65686c9f1df126923a.tar.gz kernel-bc433e5e0d42d7892dcefb65686c9f1df126923a.zip | |
vdpa_sim: cleanup kiovs in vdpasim_free()
vringh_getdesc_iotlb() allocates memory to store the kvec, that
is freed with vringh_kiov_cleanup().
vringh_getdesc_iotlb() is able to reuse a kvec previously allocated,
so in order to avoid to allocate the kvec for each request, we are
not calling vringh_kiov_cleanup() when we finished to handle a
request, but we should call it when we free the entire device.
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
