diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-02-28 05:15:46 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-17 10:27:05 +0300 |
commit | 8f0dfb3d8b1120c61f6e2cc3729290db10772b2d (patch) | |
tree | 661cb7b2a3eb10bca89217bd064e10a4a5149190 /Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 | |
parent | ff7199b04f08e1a72637ba66cd2c05842dc592d0 (diff) | |
download | linux-8f0dfb3d8b1120c61f6e2cc3729290db10772b2d.tar.xz |
iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race
There is a iscsi-target/tcp login race in LOGIN_FLAGS_READY
state assignment that can result in frequent errors during
iscsi discovery:
"iSCSI Login negotiation failed."
To address this bug, move the initial LOGIN_FLAGS_READY
assignment ahead of iscsi_target_do_login() when handling
the initial iscsi_target_start_negotiation() request PDU
during connection login.
As iscsi_target_do_login_rx() work_struct callback is
clearing LOGIN_FLAGS_READ_ACTIVE after subsequent calls
to iscsi_target_do_login(), the early sk_data_ready
ahead of the first iscsi_target_do_login() expects
LOGIN_FLAGS_READY to also be set for the initial
login request PDU.
As reported by Maged, this was first obsered using an
MSFT initiator running across multiple VMWare host
virtual machines with iscsi-target/tcp.
Reported-by: Maged Mokhtar <mmokhtar@binarykinetics.com>
Tested-by: Maged Mokhtar <mmokhtar@binarykinetics.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7')
0 files changed, 0 insertions, 0 deletions