Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41131
b: refs/heads/master
c: 08475a1
h: refs/heads/master
i:
  41129: b40b715
  41127: 4258850
v: v3
  • Loading branch information
Brian King authored and Jeff Garzik committed Nov 28, 2006
1 parent f6fa4bc commit 91572fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: f33d625f40e3b803c4cdea3219abb96cabf5ea03
refs/heads/master: 08475a1920aa7acc535324d6991b830fa7625bd8
9 changes: 6 additions & 3 deletions trunk/drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3347,20 +3347,23 @@ EXPORT_SYMBOL_GPL(ata_sas_slave_configure);
* @ap: ATA port to which the command is being sent
*
* RETURNS:
* Zero.
* Return value from __ata_scsi_queuecmd() if @cmd can be queued,
* 0 otherwise.
*/

int ata_sas_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *),
struct ata_port *ap)
{
int rc = 0;

ata_scsi_dump_cdb(ap, cmd);

if (likely(ata_scsi_dev_enabled(ap->device)))
__ata_scsi_queuecmd(cmd, done, ap->device);
rc = __ata_scsi_queuecmd(cmd, done, ap->device);
else {
cmd->result = (DID_BAD_TARGET << 16);
done(cmd);
}
return 0;
return rc;
}
EXPORT_SYMBOL_GPL(ata_sas_queuecmd);

0 comments on commit 91572fb

Please sign in to comment.