usb/uas: use unique tags for all LUNs
commitdae51546b6564b06cbae4191d4f2dee7136be3c1
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 19 Dec 2011 16:06:08 +0000 (19 17:06 +0100)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Dec 2011 09:14:49 +0000 (22 10:14 +0100)
tree6d5654cb4c00546245bdb8621a7a0d647ab9bb36
parent96c1eb9873caffc507a1951c36b43fdcf3ddeff3
usb/uas: use unique tags for all LUNs

I observed that on a device with multiple LUNs UAS was re-using the same
tag number for requests which were issued at the same time to both LUNs.
This patch uses scsi_init_shared_tag_map() to use unique tags for all
LUNs. With this patch I haven't seen the same tag number during the init
sequence anymore. Tag 1 is used for devices which do not adverise
command queueing.
This patch initilizes the queue before adding the scsi host like the
other two user in tree.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
drivers/usb/storage/uas.c