From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 673CBC4338F for ; Mon, 26 Jul 2021 10:36:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4476060234 for ; Mon, 26 Jul 2021 10:36:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232690AbhGZJ4Q (ORCPT ); Mon, 26 Jul 2021 05:56:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21568 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbhGZJ4E (ORCPT ); Mon, 26 Jul 2021 05:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627295790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o8QnaCGDF3BF7Y7BK6EzAmp31UuvyDE4mhgWiZM2WuY=; b=jSeslw02p17I1bKtPZDoPxk6dnbnnNS+SwSgWyaWj5JTEhnrAz5oA84hy5UhcIunpxEM45 uuq/Guh60of4Z/YYr3LeE/rvjFpk3EuZW1bMpIVZ8LZ/7cZWNWlxe/mpEKFd+PL3TALqG3 cNGi2whwGbc+aRDI3mjSPoXHyJl/aCU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-nsY09kDSMHSe0UwCODYDcg-1; Mon, 26 Jul 2021 06:36:29 -0400 X-MC-Unique: nsY09kDSMHSe0UwCODYDcg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 83332800D55; Mon, 26 Jul 2021 10:36:27 +0000 (UTC) Received: from T590 (ovpn-13-107.pek2.redhat.com [10.72.13.107]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 242D660862; Mon, 26 Jul 2021 10:36:18 +0000 (UTC) Date: Mon, 26 Jul 2021 18:36:17 +0800 From: Ming Lei To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Bjorn Helgaas , Christoph Hellwig , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: Re: [PATCH V3] genirq/affinity: add helper of irq_affinity_calc_sets Message-ID: References: <20210721014804.1059421-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210721014804.1059421-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Reviewed-by: Christoph Hellwig > Acked-by: Bjorn Helgaas > Cc: linux-pci@vger.kernel.org > Signed-off-by: Ming Lei Can you take this patch if you are fine? Thanks, Ming