Commit cd27396e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tejun Heo

ahci: also use a per-port lock for the multi-MSIX case

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent b55d2c84
...@@ -2378,7 +2378,7 @@ static int ahci_port_start(struct ata_port *ap) ...@@ -2378,7 +2378,7 @@ static int ahci_port_start(struct ata_port *ap)
/* /*
* Switch to per-port locking in case each port has its own MSI vector. * Switch to per-port locking in case each port has its own MSI vector.
*/ */
if (hpriv->flags & AHCI_HFLAG_MULTI_MSI) { if (hpriv->flags & (AHCI_HFLAG_MULTI_MSI | AHCI_HFLAG_MULTI_MSIX)) {
spin_lock_init(&pp->lock); spin_lock_init(&pp->lock);
ap->lock = &pp->lock; ap->lock = &pp->lock;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment