diff options
author | Christoph Hellwig <hch@lst.de> | 2016-08-11 16:26:02 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-08-11 18:37:31 +0200 |
commit | cd27396e6103a43c3df76f70db1feafa16206471 (patch) | |
tree | 3ad46b64b03a45dc40b8bb9ce0c7891398ca3247 /drivers/ata | |
parent | ARM: dts: STiH407-family: Add ports-implemented property in sata nodes (diff) | |
download | linux-cd27396e6103a43c3df76f70db1feafa16206471.tar.xz linux-cd27396e6103a43c3df76f70db1feafa16206471.zip |
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.c | 2 |
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; } |