diff options
author | Christoph Hellwig <hch@lst.de> | 2016-08-11 07:26:02 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-08-11 12:37:31 -0400 |
commit | cd27396e6103a43c3df76f70db1feafa16206471 (patch) | |
tree | 3ad46b64b03a45dc40b8bb9ce0c7891398ca3247 /drivers/ata | |
parent | b55d2c847454d197a7cf5ce2e1c175b080012184 (diff) | |
download | linux-next-cd27396e6103a43c3df76f70db1feafa16206471.tar.gz |
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; } |