summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-08-11 07:26:02 -0700
committerTejun Heo <tj@kernel.org>2016-08-11 12:37:31 -0400
commitcd27396e6103a43c3df76f70db1feafa16206471 (patch)
tree3ad46b64b03a45dc40b8bb9ce0c7891398ca3247 /drivers/ata
parentb55d2c847454d197a7cf5ce2e1c175b080012184 (diff)
downloadlinux-cd27396e6103a43c3df76f70db1feafa16206471.tar.bz2
ahci: also use a per-port lock for the multi-MSIX case
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 7461a587b39b..7c01192d3c48 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -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.
*/
- if (hpriv->flags & AHCI_HFLAG_MULTI_MSI) {
+ if (hpriv->flags & (AHCI_HFLAG_MULTI_MSI | AHCI_HFLAG_MULTI_MSIX)) {
spin_lock_init(&pp->lock);
ap->lock = &pp->lock;
}