Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362495
b: refs/heads/master
c: 7ea206c
h: refs/heads/master
i:
  362493: b03de72
  362491: 06a6cfe
  362487: 11f383a
  362479: 4b9f2f0
  362463: f8a4c0e
  362431: fa0afb6
  362367: 02d906e
  362239: dddeccd
  361983: 631f0ec
  361471: 5fc232c
  360447: 3a4bf49
v: v3
  • Loading branch information
Asias He authored and Nicholas Bellinger committed Apr 11, 2013
1 parent b824867 commit e1a0a1e
Show file tree
Hide file tree
Showing 2 changed files with 8 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: f6da51c3ef07c593a410551af4cad093e2fbe755
refs/heads/master: 7ea206cf3b06704cf2bfc9c9c395094b24dc44a2
9 changes: 7 additions & 2 deletions trunk/drivers/vhost/tcm_vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,
" exceeds SCSI_MAX_VARLEN_CDB_SIZE: %d\n",
scsi_command_size(tv_cmd->tvc_cdb),
TCM_VHOST_MAX_CDB_SIZE);
break; /* TODO */
goto err;
}
tv_cmd->tvc_lun = ((v_req.lun[2] << 8) | v_req.lun[3]) & 0x3FFF;

Expand All @@ -737,7 +737,7 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,
data_direction == DMA_TO_DEVICE);
if (unlikely(ret)) {
vq_err(vq, "Failed to map iov to sgl\n");
break; /* TODO */
goto err;
}
}

Expand All @@ -758,6 +758,11 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,
}

mutex_unlock(&vq->mutex);
return;

err:
vhost_scsi_free_cmd(tv_cmd);
mutex_unlock(&vq->mutex);
}

static void vhost_scsi_ctl_handle_kick(struct vhost_work *work)
Expand Down

0 comments on commit e1a0a1e

Please sign in to comment.