Rao Lei 6113829680 net/filter: Optimize filter_send to coroutine
This patch is to improve the logic of QEMU main thread sleep code in
qemu_chr_write_buffer() where it can be blocked and can't run other
coroutines during COLO IO stress test.

Our approach is to put filter_send() in a coroutine. In this way,
filter_send() will call qemu_coroutine_yield() in qemu_co_sleep_ns(),
so that it can be scheduled out and QEMU main thread has opportunity to
run other tasks.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2022-02-14 11:50:44 +08:00
..
2020-12-15 10:02:07 -05:00
2020-12-15 10:02:07 -05:00
2021-10-20 04:44:05 -04:00
2021-03-15 16:41:22 +08:00
2021-06-04 13:38:49 +01:00
2022-02-14 11:50:44 +08:00
2022-02-14 11:50:44 +08:00
2016-02-04 17:41:30 +00:00
2019-01-14 00:44:29 +01:00
2021-11-28 17:03:52 -05:00