Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35031
b: refs/heads/master
c: deb81d8
h: refs/heads/master
i:
  35029: 0fb745a
  35027: 99baa84
  35023: 533f32e
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed Sep 2, 2006
1 parent 14ae413 commit 41aaf0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: cf355883f506051a8ce3ac4539752829320b6c8c
refs/heads/master: deb81d80ba27da8dfabc29ccb5977db8f4942a0a
5 changes: 2 additions & 3 deletions trunk/drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,9 +1108,8 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (err)
goto out_free_irq;

scsi_init_shared_tag_map(host, ST_CAN_QUEUE);
if (host->bqt == NULL) {
err = -ENOMEM;
err = scsi_init_shared_tag_map(host, ST_CAN_QUEUE);
if (err) {
printk(KERN_ERR DRV_NAME "(%s): init shared queue failed\n",
pci_name(pdev));
goto out_free_irq;
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/scsi/scsi_tcq.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)
* @shost: the host to share the tag map among all devices
* @depth: the total depth of the map
*/
static inline void scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)
static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)
{
shost->bqt = blk_init_tags(depth);
return shost->bqt ? 0 : -ENOMEM;
}

#endif /* _SCSI_SCSI_TCQ_H */

0 comments on commit 41aaf0f

Please sign in to comment.