Skip to content

Commit 1ba0158

Browse files
hreineckeNicholas Bellinger
authored andcommitted
target/tcm_fc: use CPU affinity for responses
The libfc stack assigns exchange IDs based on the CPU the request was received on, so we need to send the responses via the same CPU. Otherwise the send logic gets confuses and responses will be delayed, causing exchange timeouts on the initiator side. Signed-off-by: Hannes Reinecke <hare@suse.com> Cc: stable@vger.kernel.org # 4.5+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 8962a4d commit 1ba0158

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/target/tcm_fc/tfc_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static void ft_send_work(struct work_struct *work)
572572
if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb,
573573
&cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
574574
ntohl(fcp->fc_dl), task_attr, data_dir,
575-
TARGET_SCF_ACK_KREF))
575+
TARGET_SCF_ACK_KREF | TARGET_SCF_USE_CPUID))
576576
goto err;
577577

578578
pr_debug("r_ctl %x target_submit_cmd %p\n", fh->fh_r_ctl, cmd);

0 commit comments

Comments
 (0)