iscsi-target: Allow ->MaxXmitDataSegmentLength assignment for iser discovery
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 06:21:20 +0000 (23:21 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 4 Jul 2013 02:43:22 +0000 (19:43 -0700)
This patch changes iscsi_set_connection_parameters() to allow
conn_ops->MaxXmitDataSegmentLength assignement to occur during
in-band iser send-targets discovery, as this value is required
by TEXT response processing code.

Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_parameters.c

index e382221..35fd643 100644 (file)
@@ -1799,9 +1799,6 @@ void iscsi_set_connection_parameters(
                 * this key is not sent over the wire.
                 */
                if (!strcmp(param->name, MAXXMITDATASEGMENTLENGTH)) {
-                       if (param_list->iser == true)
-                               continue;
-
                        ops->MaxXmitDataSegmentLength =
                                simple_strtoul(param->value, &tmpptr, 0);
                        pr_debug("MaxXmitDataSegmentLength:     %s\n",