qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] virtio-scsi: Fix unsafe bdrv_set_aio_context calls
@ 2015-02-12  5:20 Fam Zheng
  2015-02-12  5:21 ` [Qemu-devel] [PATCH 1/3] block: Forbid bdrv_set_aio_context outside BQL Fam Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Fam Zheng @ 2015-02-12  5:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, Paolo Bonzini, stefanha

It is not safe to call bdrv_set_aio_context outside BQL (see patch 1), so move
the call to main thread (patch 3). And as a bonus, the two loops in
virtio-scsi.c and virtio-scsi-dataplane.c for cmd queue handling are converged
(patch 2).


Fam Zheng (3):
  block: Forbid bdrv_set_aio_context outside BQL
  virtio-scsi: Deduplicate cmd queue handling code of dataplane
  virtio-scsi-dataplane: Use main thread BH to set BDS' aio context

 hw/scsi/virtio-scsi-dataplane.c |  26 +++----
 hw/scsi/virtio-scsi.c           | 153 ++++++++++++++++++++++++++++++++++------
 include/block/block.h           |   3 +-
 include/hw/virtio/virtio-scsi.h |  11 ++-
 4 files changed, 156 insertions(+), 37 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-03-10 13:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12  5:20 [Qemu-devel] [PATCH 0/3] virtio-scsi: Fix unsafe bdrv_set_aio_context calls Fam Zheng
2015-02-12  5:21 ` [Qemu-devel] [PATCH 1/3] block: Forbid bdrv_set_aio_context outside BQL Fam Zheng
2015-02-13 13:10   ` Paolo Bonzini
2015-03-10 13:34   ` Stefan Hajnoczi
2015-02-12  5:21 ` [Qemu-devel] [PATCH 2/3] virtio-scsi: Deduplicate cmd queue handling code of dataplane Fam Zheng
2015-02-12  5:21 ` [Qemu-devel] [PATCH 3/3] virtio-scsi-dataplane: Use main thread BH to set BDS' aio context Fam Zheng
2015-02-12 14:29   ` Paolo Bonzini
2015-02-13  1:21     ` Fam Zheng
2015-02-13  9:38       ` Paolo Bonzini
2015-02-13 10:29         ` Fam Zheng
2015-02-13 10:38           ` Paolo Bonzini
2015-02-13 12:42             ` Fam Zheng
2015-02-13 13:12               ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).