diff options
Diffstat (limited to 'drivers/infiniband/ulp/srpt/ib_srpt.c')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 0e537d8d0e47..f03aafdc3572 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c | |||
@@ -3081,6 +3081,14 @@ static void srpt_queue_tm_rsp(struct se_cmd *cmd) | |||
3081 | srpt_queue_response(cmd); | 3081 | srpt_queue_response(cmd); |
3082 | } | 3082 | } |
3083 | 3083 | ||
3084 | static void srpt_aborted_task(struct se_cmd *cmd) | ||
3085 | { | ||
3086 | struct srpt_send_ioctx *ioctx = container_of(cmd, | ||
3087 | struct srpt_send_ioctx, cmd); | ||
3088 | |||
3089 | srpt_unmap_sg_to_ib_sge(ioctx->ch, ioctx); | ||
3090 | } | ||
3091 | |||
3084 | static int srpt_queue_status(struct se_cmd *cmd) | 3092 | static int srpt_queue_status(struct se_cmd *cmd) |
3085 | { | 3093 | { |
3086 | struct srpt_send_ioctx *ioctx; | 3094 | struct srpt_send_ioctx *ioctx; |
@@ -3928,6 +3936,7 @@ static struct target_core_fabric_ops srpt_template = { | |||
3928 | .queue_data_in = srpt_queue_data_in, | 3936 | .queue_data_in = srpt_queue_data_in, |
3929 | .queue_status = srpt_queue_status, | 3937 | .queue_status = srpt_queue_status, |
3930 | .queue_tm_rsp = srpt_queue_tm_rsp, | 3938 | .queue_tm_rsp = srpt_queue_tm_rsp, |
3939 | .aborted_task = srpt_aborted_task, | ||
3931 | /* | 3940 | /* |
3932 | * Setup function pointers for generic logic in | 3941 | * Setup function pointers for generic logic in |
3933 | * target_core_fabric_configfs.c | 3942 | * target_core_fabric_configfs.c |