diff options
author | Andy Grover <agrover@redhat.com> | 2012-04-04 00:51:28 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-15 02:40:39 +0200 |
commit | 11e319ed95dc0e8f0fa4cad88b33152e9203b262 (patch) | |
tree | 7e239e19ff724d7a8c7db55f404763843eb7e7db | |
parent | target/iscsi: Fold _decide_list_to_build into _build_pdu_and_seq_lists (diff) | |
download | linux-11e319ed95dc0e8f0fa4cad88b33152e9203b262.tar.xz linux-11e319ed95dc0e8f0fa4cad88b33152e9203b262.zip |
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>
-rw-r--r-- | drivers/target/target_core_transport.c | 7 |
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, transport_generic_request_failure(se_cmd); return; } + + /* + * Check if we need to delay processing because of ALUA + * Active/NonOptimized primary access state.. + */ + core_alua_check_nonop_delay(se_cmd); + /* * Dispatch se_cmd descriptor to se_lun->lun_se_dev backend * for immediate execution of READs, otherwise wait for |