[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YP6QIVNOVstFqvFn@T590>
Date: Mon, 26 Jul 2021 18:36:17 +0800
From: Ming Lei <ming.lei@...hat.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: linux-kernel@...r.kernel.org, Bjorn Helgaas <helgaas@...nel.org>,
Christoph Hellwig <hch@....de>,
Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org
Subject: Re: [PATCH V3] genirq/affinity: add helper of irq_affinity_calc_sets
Hello Thomas,
On Wed, Jul 21, 2021 at 09:48:04AM +0800, Ming Lei wrote:
> When driver requests to allocate irq affinity managed vectors,
> pci_alloc_irq_vectors_affinity() may fallback to single vector
> allocation. In this situation, we don't need to call
> irq_create_affinity_masks for calling into ->calc_sets() for
> avoiding potential memory leak, so add the helper for this purpose.
>
> Fixes: c66d4bd110a1 ("genirq/affinity: Add new callback for (re)calculating interrupt sets")
> Reported-by: Bjorn Helgaas <helgaas@...nel.org>
> Reviewed-by: Christoph Hellwig <hch@....de>
> Acked-by: Bjorn Helgaas <bhelgaas@...gle.com>
> Cc: linux-pci@...r.kernel.org
> Signed-off-by: Ming Lei <ming.lei@...hat.com>
Can you take this patch if you are fine?
Thanks,
Ming
Powered by blists - more mailing lists