Re: [Qemu-devel] [PATCH v2] job: Fix nested aio_poll() hanging in job_txn_apply

2018-09-10 Thread Kevin Wolf
Am 24.08.2018 um 04:43 hat Fam Zheng geschrieben: > All callers have acquired ctx already. Doing that again results in > aio_poll() hang. This fixes the problem that a BDRV_POLL_WHILE() in the > callback cannot make progress because ctx is recursively locked, for > example, when drive-backup finish

[Qemu-devel] [PATCH v2] job: Fix nested aio_poll() hanging in job_txn_apply

2018-08-23 Thread Fam Zheng
All callers have acquired ctx already. Doing that again results in aio_poll() hang. This fixes the problem that a BDRV_POLL_WHILE() in the callback cannot make progress because ctx is recursively locked, for example, when drive-backup finishes. There are two callers of job_finalize(): fam@lem