[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support
From: |
Peter Lieven |
Subject: |
Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support |
Date: |
Fri, 15 Feb 2013 12:57:22 +0100 |
Am 15.02.2013 um 12:54 schrieb Paolo Bonzini <address@hidden>:
> Il 15/02/2013 12:18, Peter Lieven ha scritto:
>>>>
>>>> + task = iscsi_readcapacity16_task(iscsilun->iscsi, iscsilun->lun,
>>>> + iscsi_readcapacity16_cb, &itask);
>>>
>>> You can use iscsi_readcapacity16_sync. In fact, you probably should
>>> extract code from iscsi_open and reuse it here.
>>
>> Thats not possible afaik. Mixing sync and async commands in libiscsi is
>> a very bad thing. It will leed to nested event loops.
>
> Ah, I thought qmp_block_resize did a bdrv_drain_all before calling
> bdrv_truncate.
Ah ok. In this special case it might be ok. We should ask Ronnie.
What must not happen is that the sync task loop calls the async callbacks.
Peter
>
> Maybe it should. Kevin, what do you think?
>
> Paolo
- [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Peter Lieven, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Paolo Bonzini, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Peter Lieven, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Paolo Bonzini, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support,
Peter Lieven <=
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Kevin Wolf, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Peter Lieven, 2013/02/15
- Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support, Paolo Bonzini, 2013/02/15
- [Qemu-devel] [PATCHv2] iscsi: add iscsi_truncate support, Peter Lieven, 2013/02/15
- Re: [Qemu-devel] [PATCHv2] iscsi: add iscsi_truncate support, Paolo Bonzini, 2013/02/15
- [Qemu-devel] [PATCH] block: complete all IOs before .bdrv_truncate, Peter Lieven, 2013/02/18
- Re: [Qemu-devel] [PATCH] block: complete all IOs before .bdrv_truncate, Paolo Bonzini, 2013/02/18
- Re: [Qemu-devel] [PATCH] block: complete all IOs before .bdrv_truncate, Kevin Wolf, 2013/02/20
- Re: [Qemu-devel] [PATCH] block: complete all IOs before .bdrv_truncate, Eric Blake, 2013/02/18
- [Qemu-devel] [PATCHv3] iscsi: add iscsi_truncate support, Peter Lieven, 2013/02/18