Re: [PATCH 1/2] Use sdev_scsi2lun for SCSI parallel drivers

Christoph Hellwig
2014-07-04T13:44:39Z

On Fri, Jul 04, 2014 at 01:54:34PM +0200, Hannes Reinecke wrote:
> SCSI-2 defines only up to 256 LUNs with a flat namespace.
> This patch introduces an accessor 'sdev_scsi2lun' which should be
> used for these drivers to avoid problems when using 64-bit LUNs
> internally.

So what would be set in the upper 48 bits for those drivers? We receive
the LUN over the wire to start with.