[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.9-rc5 v2] block: Drain BH in bdrv_drained_
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH for-2.9-rc5 v2] block: Drain BH in bdrv_drained_begin |
Date: |
Tue, 18 Apr 2017 10:18:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 17/04/2017 10:27, Fam Zheng wrote:
> At this point it's even unclear to me what should be the plan for 2.9. v1 IMO
> was the least intrusive, but didn't cover bdrv_drain_all_begin. v2 has this
> controversial "aio_poll(ctx_, false)",
v1 has it too:
- bdrv_drain_recurse(bs);
+ while (true) {
+ if (!bdrv_drain_recurse(bs) &&
+ !aio_poll(bdrv_get_aio_context(bs), false)) {
+ break;
+ }
+ }
I don't have any particular preference. Both patches are self contained
and easy to revert when the underlying root cause is fixed.
Thanks,
Paolo
> however its alternative,
> "aio_poll(qemu_get_aio_context(), false)", "introduces" another crash that is
> not seen otherwise.
>
> What should we do now?