tcm_fc: Add abort flag for gracefully handling exchange timeout
[linux-flexiantxendom0.git] / drivers / target / tcm_fc / tfc_io.c
index 1369b1c..ada131c 100644 (file)
@@ -84,6 +84,8 @@ int ft_queue_data_in(struct se_cmd *se_cmd)
        void *from;
        void *to = NULL;
 
+       if (cmd->aborted)
+               return 0;
        ep = fc_seq_exch(cmd->seq);
        lport = ep->lp;
        cmd->seq = lport->tt.seq_start_next(cmd->seq);