mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
virtio-console: call scheduler when we free unused buffs
For virtio-net we were getting CPU stall warnings, and fixed it by
calling the scheduler: see f8bb510439
("virtio_net: suppress cpu stall
when free_unused_bufs").
This driver is similar so theoretically the same logic applies.
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Message-Id: <20230609131817.712867-3-xianting.tian@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
7a5103b81a
commit
56b5e65efe
@@ -1935,6 +1935,7 @@ static void remove_vqs(struct ports_device *portdev)
|
|||||||
flush_bufs(vq, true);
|
flush_bufs(vq, true);
|
||||||
while ((buf = virtqueue_detach_unused_buf(vq)))
|
while ((buf = virtqueue_detach_unused_buf(vq)))
|
||||||
free_buf(buf, true);
|
free_buf(buf, true);
|
||||||
|
cond_resched();
|
||||||
}
|
}
|
||||||
portdev->vdev->config->del_vqs(portdev->vdev);
|
portdev->vdev->config->del_vqs(portdev->vdev);
|
||||||
kfree(portdev->in_vqs);
|
kfree(portdev->in_vqs);
|
||||||
|
Reference in New Issue
Block a user