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 7461a587b39b4e9d953e3a0063b9f1fb8cad0319..7c01192d3c48f8053dcadced6718e97fe848bf04 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;
        }
This page took 0.028177 seconds and 5 git commands to generate.