Skip to content

Commit

Permalink
target/tcm_fc: use CPU affinity for responses
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected] # 4.5+
Signed-off-by: Nicholas Bellinger <[email protected]>
  • Loading branch information
hreinecke authored and Nicholas Bellinger committed Oct 21, 2016
1 parent 8962a4d commit 1ba0158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/tcm_fc/tfc_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static void ft_send_work(struct work_struct *work)
if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb,
&cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
ntohl(fcp->fc_dl), task_attr, data_dir,
TARGET_SCF_ACK_KREF))
TARGET_SCF_ACK_KREF | TARGET_SCF_USE_CPUID))
goto err;

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

0 comments on commit 1ba0158

Please sign in to comment.