ahci: also use a per-port lock for the multi-MSIX case
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Aug 2016 14:26:02 +0000 (07:26 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 11 Aug 2016 16:37:31 +0000 (12:37 -0400)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libahci.c

index 7461a58..7c01192 100644 (file)
@@ -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;
        }