iscsi-target: Fix CmdSN comparison (use cmd->cmd_sn instead of cmd->stat_sn)
authorRoland Dreier <roland@purestorage.com>
Mon, 7 Jan 2013 19:45:16 +0000 (11:45 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Jan 2013 05:00:37 +0000 (21:00 -0800)
commit64fe4f4f181cc2fe97d4176bf6ee6e3725ae33ec
tree5bb4a5735dcc3e253f4cd047be4347b74a387422
parent5a3b6fc0092c5f8dee7820064ee54d2631d48573
iscsi-target: Fix CmdSN comparison (use cmd->cmd_sn instead of cmd->stat_sn)

Commit 64c13330a389 ("iscsi-target: Fix bug in handling of ExpStatSN
ACK during u32 wrap-around") introduced a bug where we compare the
wrong SN against our ExpCmdSN.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_erl2.c