]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_scan: Fixup scsilun_to_int()
authorHannes Reinecke <hare@suse.de>
Wed, 25 Jun 2014 13:27:39 +0000 (15:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:07:39 +0000 (22:07 +0200)
commit61e8baf181f8e7e60f4ed4b08d220119ea57f6a6
treeb7b85fb5f76d647fe128972dadfe0157c8703478
parentdbbb07d27cd9807892a0e71a154c5074cfc3edbd
scsi_scan: Fixup scsilun_to_int()

scsilun_to_int() has an error which prevents it from generating
correct LUN numbers for 64bit values.
Also we should remove the misleading comment about portions of
the LUN being ignored; the initiator should treat the LUN as
an opaque value.
And, finally, the example given should use the correct
prefix (here: extended flat space addressing scheme).

This patch includes the modifications suggested by
Bart van Assche.

Cc: Bart van Assche <bvanassche@acm.org>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_scan.c