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