[Qemu-block] [PATCH 1/4] quorum: Fix crash in quorum_aio_cb()

2016-03-09 Thread Alberto Garcia
quorum_aio_cb() emits the QUORUM_REPORT_BAD event if there's an I/O error in a Quorum child. However sacb->aiocb must be correctly initialized for this to happen. read_quorum_children() and read_fifo_child() are not doing this, which results in a QEMU crash. Signed-off-by: Alberto Garcia --- blo

Re: [Qemu-block] [PATCH 1/4] quorum: Fix crash in quorum_aio_cb()

2016-03-09 Thread Max Reitz
On 09.03.2016 17:11, Alberto Garcia wrote: > quorum_aio_cb() emits the QUORUM_REPORT_BAD event if there's > an I/O error in a Quorum child. However sacb->aiocb must be > correctly initialized for this to happen. read_quorum_children() and > read_fifo_child() are not doing this, which results in a Q

Re: [Qemu-block] [PATCH 1/4] quorum: Fix crash in quorum_aio_cb()

2016-03-10 Thread Alberto Garcia
On Wed 09 Mar 2016 05:54:55 PM CET, Max Reitz wrote: > On 09.03.2016 17:11, Alberto Garcia wrote: >> quorum_aio_cb() emits the QUORUM_REPORT_BAD event if there's >> an I/O error in a Quorum child. However sacb->aiocb must be >> correctly initialized for this to happen. read_quorum_children() and >

Re: [Qemu-block] [PATCH 1/4] quorum: Fix crash in quorum_aio_cb()

2016-03-11 Thread Max Reitz
On 10.03.2016 11:10, Alberto Garcia wrote: > On Wed 09 Mar 2016 05:54:55 PM CET, Max Reitz wrote: >> On 09.03.2016 17:11, Alberto Garcia wrote: >>> quorum_aio_cb() emits the QUORUM_REPORT_BAD event if there's >>> an I/O error in a Quorum child. However sacb->aiocb must be >>> correctly initialized