]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix max_cmd_sn increment w/o cmdsn mutex regressions
authorRoland Dreier <roland@purestorage.com>
Tue, 8 Sep 2015 13:14:18 +0000 (06:14 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Sep 2015 07:32:28 +0000 (00:32 -0700)
commitcb6cc37a01b5caf2d9f1e1f57d3d7c17e544f630
tree9dec30b18f9ec4626dd9c17bc99bb134726f80e4
parent13d64a2681917f1e3fccd63d612a1de77a20d5db
target: Fix max_cmd_sn increment w/o cmdsn mutex regressions

Current for-next iscsi target is broken:

commit 1e7bae4e8fa6f8d2dcb76f8b2a8d41e05cb48135
Author: Roland Dreier <roland@purestorage.com>
Date:   Thu Jul 23 14:53:32 2015 -0700

    target: Drop iSCSI use of mutex around max_cmd_sn increment

This patch fixes incorrect pr_debug() + atomic_inc_return() usage
within iscsit_increment_maxcmdsn() code.

Also fix funny iscsit_determine_maxcmdsn() usage and update
iscsi_target_do_tx_login_io() code.

Reported-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_device.c
drivers/target/iscsi/iscsi_target_nego.c