aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-04-03 18:51:28 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-04-14 20:40:39 -0400
commit11e319ed95dc0e8f0fa4cad88b33152e9203b262 (patch)
tree7e239e19ff724d7a8c7db55f404763843eb7e7db /drivers/target
parent4334e49bcae6f4602eb5c52158b8fb89d8941d99 (diff)
target: Call core_alua_check_nonop_delay in target_submit_cmd()
It appears iscsi is the only one to call this in its cmd submit path, but it appears to be applicable to all fabrics, and should always be called. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index a66f81a7d490..28945d999613 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -1733,6 +1733,13 @@ void target_submit_cmd(struct se_cmd *se_cmd, struct se_session *se_sess,
1733 transport_generic_request_failure(se_cmd); 1733 transport_generic_request_failure(se_cmd);
1734 return; 1734 return;
1735 } 1735 }
1736
1737 /*
1738 * Check if we need to delay processing because of ALUA
1739 * Active/NonOptimized primary access state..
1740 */
1741 core_alua_check_nonop_delay(se_cmd);
1742
1736 /* 1743 /*
1737 * Dispatch se_cmd descriptor to se_lun->lun_se_dev backend 1744 * Dispatch se_cmd descriptor to se_lun->lun_se_dev backend
1738 * for immediate execution of READs, otherwise wait for 1745 * for immediate execution of READs, otherwise wait for