Skip to contentSkip to conversation

iscsi_tcp: add write permission to max_lun

PATCH In review Rob Evers 3 participants 5 messages Aug 15, 2012

Subsystems (2)
lore
Share & tools
lore

Rob Evers

author
#0 lore raw

PATCH 1/1 iscsi_tcp: add write permission to max_lun

Add root write permission to iscsi_tcp max_lun parameter

---
 drivers/scsi/iscsi_tcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +1 -1
index 9220861..e8609a4 100644
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;
 static struct iscsi_transport iscsi_sw_tcp_transport;
 
 static unsigned int iscsi_max_lun = 512;
-module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO);
+module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO|S_IWUSR);
 
 static int iscsi_sw_tcp_dbg;
 module_param_named(debug_iscsi_tcp, iscsi_sw_tcp_dbg, int,
Signature · 1 line
1.7.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Rob Evers

Add root write permission to iscsi_tcp max_lun parameter

---
drivers/scsi/iscsi_tcp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +0 -0
index 9220861..e8609a4 100644

drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59

Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1 -1
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;
 static struct iscsi_transport iscsi_sw_tcp_transport;
 
 static unsigned int iscsi_max_lun = 512;
-module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO);
+module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO|S_IWUSR);

Looks ok.

maintainer
#2 lore raw
Quoted 24 lines · Michael Christie
Quoted 12 lines · Rob Evers

Add root write permission to iscsi_tcp max_lun parameter

---
drivers/scsi/iscsi_tcp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +0 -0
index 9220861..e8609a4 100644

drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59

Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1 -1
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;
 static struct iscsi_transport iscsi_sw_tcp_transport;
 
 static unsigned int iscsi_max_lun = 512;
-module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO);
+module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO|S_IWUSR);

Looks ok.

Quoted 1 line

Is there a reason not to raise the limit globally within iSCSI? i.e. do what everyone else does (usually 0xFFFF for a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.

James

#3 lore raw
Quoted 25 lines · James Bottomley
Quoted 24 lines · Michael Christie
Quoted 12 lines · Rob Evers

Add root write permission to iscsi_tcp max_lun parameter

---
drivers/scsi/iscsi_tcp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +0 -0
index 9220861..e8609a4 100644

drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59

Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1 -1
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;
 static struct iscsi_transport iscsi_sw_tcp_transport;
 
 static unsigned int iscsi_max_lun = 512;
-module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO);
+module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO|S_IWUSR);

Looks ok.

Quoted 3 lines
Quoted 1 line

Is there a reason not to raise the limit globally within iSCSI? i.e. do

No reason that I know of now.

Quoted 4 lines

what everyone else does (usually 0xFFFF for a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.

Either is fine. Rob, do you want to do ~0 in your patch, because we do not care. There is not a iscsi driver level side limitation.

author
#4 lore raw
Quoted 27 lines · Mike Christie
Quoted 24 lines · James Bottomley
Quoted 23 lines · Michael Christie
Quoted 12 lines · Rob Evers

Add root write permission to iscsi_tcp max_lun parameter

---
drivers/scsi/iscsi_tcp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +0 -0
index 9220861..e8609a4 100644

drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59

Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1 -1
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;
 static struct iscsi_transport iscsi_sw_tcp_transport;
 
 static unsigned int iscsi_max_lun = 512;
-module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO);
+module_param_named(max_lun, iscsi_max_lun, uint, S_IRUGO|S_IWUSR);

Looks ok.

Quoted 2 lines
Quoted 1 line

Is there a reason not to raise the limit globally within iSCSI? i.e. do

Quoted 8 lines

No reason that I know of now.

Quoted 4 lines

what everyone else does (usually 0xFFFF for a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.

Either is fine. Rob, do you want to do ~0 in your patch, because we do not care. There is not a iscsi driver level side limitation.

ok. I'll post another patch using ~0