Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298296
b: refs/heads/master
c: a5fb407
h: refs/heads/master
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Mar 28, 2012
1 parent 294117e commit b1dfe72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: 7dd21308b17e2b657d167adc7e20b41b7c6bbe5c
refs/heads/master: a5fb407eed819e950e369060a822640582a1e538
16 changes: 4 additions & 12 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,6 @@ static void ipr_do_req(struct ipr_cmnd *ipr_cmd,

ipr_trc_hook(ipr_cmd, IPR_TRACE_START, 0);

mb();

ipr_send_command(ipr_cmd);
}

Expand Down Expand Up @@ -985,8 +983,6 @@ static void ipr_send_hcam(struct ipr_ioa_cfg *ioa_cfg, u8 type,

ipr_trc_hook(ipr_cmd, IPR_TRACE_START, IPR_IOA_RES_ADDR);

mb();

ipr_send_command(ipr_cmd);
} else {
list_add_tail(&hostrcb->queue, &ioa_cfg->hostrcb_free_q);
Expand Down Expand Up @@ -5863,14 +5859,12 @@ static int ipr_queuecommand_lck(struct scsi_cmnd *scsi_cmd,
rc = ipr_build_ioadl(ioa_cfg, ipr_cmd);
}

if (likely(rc == 0)) {
mb();
ipr_send_command(ipr_cmd);
} else {
list_move_tail(&ipr_cmd->queue, &ioa_cfg->free_q);
return SCSI_MLQUEUE_HOST_BUSY;
if (unlikely(rc != 0)) {
list_move_tail(&ipr_cmd->queue, &ioa_cfg->free_q);
return SCSI_MLQUEUE_HOST_BUSY;
}

ipr_send_command(ipr_cmd);
return 0;
}

Expand Down Expand Up @@ -6248,8 +6242,6 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
return AC_ERR_INVALID;
}

mb();

ipr_send_command(ipr_cmd);

return 0;
Expand Down

0 comments on commit b1dfe72

Please sign in to comment.