scsi: Increase the number of possible devices
authorHannes Reinecke <hare@suse.de>
Wed, 24 Nov 2010 11:15:56 +0000 (12:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 25 Nov 2010 10:57:32 +0000 (11:57 +0100)
commitb82093f4bd2d3f3f5586e9a5eea029981b1dbaf8
tree400a49cd64d71ef0ed550ea9838341d308e312c0
parent79569274a9cf03020047f3c1c05fb3245492a2ce
scsi: Increase the number of possible devices

The SCSI parallel interface has a limit of 8 devices, but
not the SCSI stack in general. So we should be removing the
hard-coded limit and use MAX_SCSI_DEVS instead.
And we only need to scan those devices which are allocated
by the bus.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.h
hw/scsi-bus.c
hw/scsi.h