[PATCH] Fix crash with IOthread when block commit after snapshot

2021-01-25 Thread 08005325
From: Michael Qiu Currently, if guest has workloads, IO thread will acquire aio_context lock before do io_submit, it leads to segmentfault when do block commit after snapshot. Just like below: [Switching to thread 2 (Thread 0x7f046c312700 (LWP 108791))] #0 0x5573f57930db in bdrv_mirror_top_p

[PATCH] Fix crash with IOthread when block commit after snapshot

2021-01-25 Thread 08005325
From: Michael Qiu Currently, if guest has workloads, IO thread will acquire aio_context lock before do io_submit, it leads to segmentfault when do block commit after snapshot. Just like below: [Switching to thread 2 (Thread 0x7f046c312700 (LWP 108791))] #0 0x5573f57930db in bdrv_mirror_top_p