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