Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264684
b: refs/heads/master
c: 8dc52b5
h: refs/heads/master
v: v3
  • Loading branch information
Nicholas Bellinger committed Oct 24, 2011
1 parent f9b6cc1 commit 774bec0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d270190a75e5b859c6d8eed8d4095fbb45f78264
refs/heads/master: 8dc52b54207f361f7abf6cbe26f5199ae8b7cf23
2 changes: 1 addition & 1 deletion trunk/drivers/target/target_core_tmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void core_tmr_drain_tmr_list(
(preempt_and_abort_list) ? "Preempt" : "", tmr,
tmr->function, tmr->response, cmd->t_state);

transport_cmd_finish_abort_tmr(cmd);
transport_cmd_finish_abort(cmd, 1);
}
}

Expand Down
13 changes: 2 additions & 11 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ static void transport_lun_remove_cmd(struct se_cmd *cmd)

void transport_cmd_finish_abort(struct se_cmd *cmd, int remove)
{
transport_lun_remove_cmd(cmd);
if (!cmd->se_tmr_req)
transport_lun_remove_cmd(cmd);

if (transport_cmd_check_stop_to_fabric(cmd))
return;
Expand All @@ -601,16 +602,6 @@ void transport_cmd_finish_abort(struct se_cmd *cmd, int remove)
}
}

void transport_cmd_finish_abort_tmr(struct se_cmd *cmd)
{
transport_remove_cmd_from_queue(cmd, &cmd->se_dev->dev_queue_obj);

if (transport_cmd_check_stop_to_fabric(cmd))
return;

transport_put_cmd(cmd);
}

static void transport_add_cmd_to_queue(
struct se_cmd *cmd,
int t_state)
Expand Down
1 change: 0 additions & 1 deletion trunk/include/target/target_core_transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ extern void transport_free_session(struct se_session *);
extern void transport_deregister_session_configfs(struct se_session *);
extern void transport_deregister_session(struct se_session *);
extern void transport_cmd_finish_abort(struct se_cmd *, int);
extern void transport_cmd_finish_abort_tmr(struct se_cmd *);
extern void transport_complete_sync_cache(struct se_cmd *, int);
extern void transport_complete_task(struct se_task *, int);
extern void transport_add_task_to_execute_queue(struct se_task *,
Expand Down

0 comments on commit 774bec0

Please sign in to comment.