Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64787
b: refs/heads/master
c: 96809f1
h: refs/heads/master
i:
  64785: 9065051
  64783: a5fe308
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Aug 15, 2007
1 parent ddd1f89 commit ea9a09a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 604cd794de3094ccf8a9c149f299237a642ba9b5
refs/heads/master: 96809f1b15eddae2325b2ab78e6f931edc969074
11 changes: 9 additions & 2 deletions trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,19 @@ static int iscsi_data_xmit(struct iscsi_conn *conn)
*/
conn->ctask = list_entry(conn->xmitqueue.next,
struct iscsi_cmd_task, running);
if (conn->ctask->state == ISCSI_TASK_PENDING) {
switch (conn->ctask->state) {
case ISCSI_TASK_ABORTING:
break;
case ISCSI_TASK_PENDING:
iscsi_prep_scsi_cmd_pdu(conn->ctask);
conn->session->tt->init_cmd_task(conn->ctask);
/* fall through */
default:
conn->ctask->state = ISCSI_TASK_RUNNING;
break;
}
conn->ctask->state = ISCSI_TASK_RUNNING;
list_move_tail(conn->xmitqueue.next, &conn->run_list);

rc = iscsi_xmit_ctask(conn);
if (rc)
goto again;
Expand Down

0 comments on commit ea9a09a

Please sign in to comment.