diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-22 13:52:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-22 13:52:03 -0500 |
commit | b0e3636f656c98bdeded5aaa78601e3256b18d6d (patch) | |
tree | 8b2096769179967bd3c186cf79c232f21fa1d1a1 /drivers/target/iscsi/iscsi_target_nego.c | |
parent | 0032cdefff0f4ff5bd9464036d510a5441ec8b83 (diff) | |
parent | 86784c6bdeeef78eed94d298be7a8879f6a97ee2 (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Pull SCSI target updates from Nicholas Bellinger:
"Things have been quiet this round with mostly bugfixes, percpu
conversions, and other minor iscsi-target conformance testing changes.
The highlights include:
- Add demo_mode_discovery attribute for iscsi-target (Thomas)
- Convert tcm_fc(FCoE) to use percpu-ida pre-allocation
- Add send completion interrupt coalescing for ib_isert
- Convert target-core to use percpu-refcounting for se_lun
- Fix mutex_trylock usage bug in iscsit_increment_maxcmdsn
- tcm_loop updates (Hannes)
- target-core ALUA cleanups + prep for v3.14 SCSI Referrals support (Hannes)
v3.14 is currently shaping to be a busy development cycle in target
land, with initial support for T10 Referrals and T10 DIF currently on
the roadmap"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (40 commits)
iscsi-target: chap auth shouldn't match username with trailing garbage
iscsi-target: fix extract_param to handle buffer length corner case
iscsi-target: Expose default_erl as TPG attribute
target_core_configfs: split up ALUA supported states
target_core_alua: Make supported states configurable
target_core_alua: Store supported ALUA states
target_core_alua: Rename ALUA_ACCESS_STATE_OPTIMIZED
target_core_alua: spellcheck
target core: rename (ex,im)plict -> (ex,im)plicit
percpu-refcount: Add percpu-refcount.o to obj-y
iscsi-target: Do not reject non-immediate CmdSNs exceeding MaxCmdSN
iscsi-target: Convert iscsi_session statistics to atomic_long_t
target: Convert se_device statistics to atomic_long_t
target: Fix delayed Task Aborted Status (TAS) handling bug
iscsi-target: Reject unsupported multi PDU text command sequence
ib_isert: Avoid duplicate iscsit_increment_maxcmdsn call
iscsi-target: Fix mutex_trylock usage in iscsit_increment_maxcmdsn
target: Core does not need blkdev.h
target: Pass through I/O topology for block backstores
iser-target: Avoid using FRMR for single dma entry requests
...
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_nego.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_nego.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c index ef6d836a4d09..83c965c65386 100644 --- a/drivers/target/iscsi/iscsi_target_nego.c +++ b/drivers/target/iscsi/iscsi_target_nego.c | |||
@@ -88,7 +88,7 @@ int extract_param( | |||
88 | if (len < 0) | 88 | if (len < 0) |
89 | return -1; | 89 | return -1; |
90 | 90 | ||
91 | if (len > max_length) { | 91 | if (len >= max_length) { |
92 | pr_err("Length of input: %d exceeds max_length:" | 92 | pr_err("Length of input: %d exceeds max_length:" |
93 | " %d\n", len, max_length); | 93 | " %d\n", len, max_length); |
94 | return -1; | 94 | return -1; |
@@ -140,7 +140,7 @@ static u32 iscsi_handle_authentication( | |||
140 | iscsi_nacl = container_of(se_nacl, struct iscsi_node_acl, | 140 | iscsi_nacl = container_of(se_nacl, struct iscsi_node_acl, |
141 | se_node_acl); | 141 | se_node_acl); |
142 | 142 | ||
143 | auth = ISCSI_NODE_AUTH(iscsi_nacl); | 143 | auth = &iscsi_nacl->node_auth; |
144 | } | 144 | } |
145 | } else { | 145 | } else { |
146 | /* | 146 | /* |
@@ -789,7 +789,7 @@ static int iscsi_target_handle_csg_zero( | |||
789 | return -1; | 789 | return -1; |
790 | 790 | ||
791 | if (!iscsi_check_negotiated_keys(conn->param_list)) { | 791 | if (!iscsi_check_negotiated_keys(conn->param_list)) { |
792 | if (ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication && | 792 | if (conn->tpg->tpg_attrib.authentication && |
793 | !strncmp(param->value, NONE, 4)) { | 793 | !strncmp(param->value, NONE, 4)) { |
794 | pr_err("Initiator sent AuthMethod=None but" | 794 | pr_err("Initiator sent AuthMethod=None but" |
795 | " Target is enforcing iSCSI Authentication," | 795 | " Target is enforcing iSCSI Authentication," |
@@ -799,7 +799,7 @@ static int iscsi_target_handle_csg_zero( | |||
799 | return -1; | 799 | return -1; |
800 | } | 800 | } |
801 | 801 | ||
802 | if (ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication && | 802 | if (conn->tpg->tpg_attrib.authentication && |
803 | !login->auth_complete) | 803 | !login->auth_complete) |
804 | return 0; | 804 | return 0; |
805 | 805 | ||
@@ -862,7 +862,7 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log | |||
862 | } | 862 | } |
863 | 863 | ||
864 | if (!login->auth_complete && | 864 | if (!login->auth_complete && |
865 | ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication) { | 865 | conn->tpg->tpg_attrib.authentication) { |
866 | pr_err("Initiator is requesting CSG: 1, has not been" | 866 | pr_err("Initiator is requesting CSG: 1, has not been" |
867 | " successfully authenticated, and the Target is" | 867 | " successfully authenticated, and the Target is" |
868 | " enforcing iSCSI Authentication, login failed.\n"); | 868 | " enforcing iSCSI Authentication, login failed.\n"); |