diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-04-18 19:07:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-05-26 12:14:16 +0200 |
commit | fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed (patch) | |
tree | 99fd3e7e6ae403005fee0789650183a05e90ba53 /hw/lsi53c895a.c | |
parent | a1f0cce2ac0243572ff72aa561da67fe3766a395 (diff) | |
download | qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.zip qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.gz qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.bz2 |
scsi: do not call send_command directly
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r-- | hw/lsi53c895a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index bca889a..185622d 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -791,7 +791,7 @@ static void lsi_do_command(LSIState *s) s->current->req = dev->info->alloc_req(dev, s->current->tag, s->current_lun); - n = dev->info->send_command(s->current->req, buf); + n = scsi_req_enqueue(s->current->req, buf); if (n > 0) { lsi_set_phase(s, PHASE_DI); dev->info->read_data(s->current->req); |