Hi, Le mercredi 04 mars 2015 à 11:01 +0100, Bart Van Assche a écrit : > The SCSI standard defines 64-bit values for LUNs. Large arrays > employing large or hierarchical LUN numbers become more and more > common. So update the SRP initiator to use 64-bit LUN numbers. > See also Hannes Reinecke, commit 9cb78c16f5da ("scsi: use 64-bit LUNs"), > June 2014. > Thanks for the added description. > The largest LUN number that has been tested is 0xd2003fff00000000. > > Checked the following structure sizes with gdb: > * sizeof(struct srp_cmd) = 48 > * sizeof(struct srp_tsk_mgmt) = 48 > * sizeof(struct srp_aer_req) = 36 > > The ibmvscsi changes have been compile tested only on a PPC system. > > Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> > Cc: Sagi Grimberg <sagig@xxxxxxxxxxxx> > Cc: Sebastian Parschauer <sebastian.riemer@xxxxxxxxxxxxxxxx> > Cc: Brian King <brking@xxxxxxxxxxxxxxxxxx> > Cc: Nathan Fontenot <nfont@xxxxxxxxxxxxxxxxxx> > Cc: Tyrel Datwyler <tyreld@xxxxxxxxxxxxxxxxxx> > --- > drivers/infiniband/ulp/srp/ib_srp.c | 12 ++++++------ > drivers/scsi/ibmvscsi/ibmvscsi.c | 6 +++--- > include/scsi/srp.h | 7 ++++--- > 3 files changed, 13 insertions(+), 12 deletions(-) > > diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c > index a0e24a8..e427454 100644 > --- a/drivers/infiniband/ulp/srp/ib_srp.c > +++ b/drivers/infiniband/ulp/srp/ib_srp.c > @@ -3146,7 +3146,7 @@ static ssize_t srp_create_target(struct device *dev, > target_host->transportt = ib_srp_transport_template; > target_host->max_channel = 0; > target_host->max_id = 1; > - target_host->max_lun = SRP_MAX_LUN; > + target_host->max_lun = -1LL; I guess you can remove SRP_MAX_LUN from drivers/infiniband/ulp/srp/ib_srp.h too. > target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; > > target = host_to_target(target_host); > diff --git a/include/scsi/srp.h b/include/scsi/srp.h > index 1ae84db..5be834d 100644 > --- a/include/scsi/srp.h > +++ b/include/scsi/srp.h > @@ -42,6 +42,7 @@ > */ > > #include <linux/types.h> > +#include <scsi/scsi.h> > > enum { > SRP_LOGIN_REQ = 0x00, @@ -54,7 +54,6 @@ enum { SRP_DLID_REDIRECT = 2, SRP_STALE_CONN = 3, - SRP_MAX_LUN = 512, SRP_DEF_SG_TABLESIZE = 12, SRP_DEFAULT_QUEUE_SIZE = 1 << 6, Regards. -- Yann Droneaud OPTEYA -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html