You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: libata: fix NCQ devices behind port multipliers scsi: make sure that scsi_init_shared_tag_map() doesn't overwrite existing map
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user