diff options
author | 2023-08-10 20:30:46 +0800 | |
---|---|---|
committer | 2023-09-03 18:10:22 -0400 | |
commit | 610c708bf872fa575f33f74a1650a7011055b7aa (patch) | |
tree | d90c3c9ca32747e4a3513991fc73c33061c8bc00 /scripts/generate_rust_analyzer.py | |
parent | vdpa_sim: offer VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK (diff) | |
download | linux-rng-610c708bf872fa575f33f74a1650a7011055b7aa.tar.xz linux-rng-610c708bf872fa575f33f74a1650a7011055b7aa.zip |
virtio_ring: check use_dma_api before unmap desc for indirect
Inside detach_buf_split(), if use_dma_api is false,
vring_unmap_one_split_indirect will be called many times, but actually
nothing is done. So this patch check use_dma_api firstly.
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230810123057.43407-2-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions