mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
scsi: create restart bottom half in the right AioContext
This matches commit 4407c1c
(virtio-blk: Schedule BH in the right context,
2014-06-17), which did the same thing for virtio-blk.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4164719165
commit
d223c10453
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ static void scsi_dma_restart_cb(void *opaque, int running, RunState state)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!s->bh) {
|
if (!s->bh) {
|
||||||
s->bh = qemu_bh_new(scsi_dma_restart_bh, s);
|
AioContext *ctx = blk_get_aio_context(s->conf.blk);
|
||||||
|
s->bh = aio_bh_new(ctx, scsi_dma_restart_bh, s);
|
||||||
qemu_bh_schedule(s->bh);
|
qemu_bh_schedule(s->bh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue