From e6610624ae0bf80e5d76e9f988647924efbe7e0e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 13 Aug 2013 18:41:38 +0000 Subject: [PATCH] fcst: Report FC send errors git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4967 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index 86f1e90f9..a7695e493 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -298,7 +298,10 @@ int ft_send_response(struct scst_cmd *cmd) fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP, FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ, 0); - lport->tt.seq_send(lport, fcmd->seq, fp); + error = lport->tt.seq_send(lport, fcmd->seq, fp); + if (error < 0) + pr_err("Sending response for exchange with OX_ID %#x and RX_ID" + " %#x failed: %d\n", ep->oxid, ep->rxid, error); done: lport->tt.exch_done(fcmd->seq); scst_tgt_cmd_done(cmd, SCST_CONTEXT_SAME);