Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117927
b: refs/heads/master
c: 43a49cb
h: refs/heads/master
i:
  117925: 18ab285
  117923: 086b8f6
  117919: 7d7f68e
v: v3
  • Loading branch information
Jens Axboe committed Oct 27, 2008
1 parent a6148ad commit 42e845d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3070f69b66b7ab2f02d8a2500edae07039c38508
refs/heads/master: 43a49cbdf31e812c0d8f553d433b09b421f5d52c
9 changes: 9 additions & 0 deletions trunk/drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,15 @@ static int ata_scsi_dev_config(struct scsi_device *sdev,

depth = min(sdev->host->can_queue, ata_id_queue_depth(dev->id));
depth = min(ATA_MAX_QUEUE - 1, depth);

/*
* If this device is behind a port multiplier, we have
* to share the tag map between all devices on that PMP.
* Set up the shared tag map here and we get automatic.
*/
if (dev->link->ap->pmp_link)
scsi_init_shared_tag_map(sdev->host, ATA_MAX_QUEUE - 1);

scsi_set_tag_type(sdev, MSG_SIMPLE_TAG);
scsi_activate_tcq(sdev, depth);
}
Expand Down

0 comments on commit 42e845d

Please sign in to comment.