scsi-generic: Handle queue full
commit2e7cc4d604206ce15d298686c0ffd77dcedc33a2
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Apr 2011 12:29:16 +0000 (18 14:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 May 2011 10:14:17 +0000 (26 12:14 +0200)
treefda1c04629414e3c18ed26bda25bb00d4ee23422
parent42741212ebe703a5b9273475e7c65829b8fa2e51
scsi-generic: Handle queue full

The sg driver currently has a hardcoded limit of commands it
can handle simultaneously. When this limit is reached the
driver will return -EDOM. So we need to capture this to
enable proper return values here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
hw/scsi-generic.c