Re: [Qemu-devel] [PATCH] scsi: use scsi_req_cancel_async when purging requests

2015-12-16 Thread Fam Zheng
On Wed, 12/16 19:33, Paolo Bonzini wrote: > This avoids calls to aio_poll without having acquired the context first. > > Signed-off-by: Paolo Bonzini > --- > hw/scsi/scsi-bus.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c

[Qemu-devel] [PATCH] scsi: use scsi_req_cancel_async when purging requests

2015-12-16 Thread Paolo Bonzini
This avoids calls to aio_poll without having acquired the context first. Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-bus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index fd1171e..524a998 100644 --- a/hw/scsi/scsi-bus.c ++