Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp277238pxb; Thu, 25 Feb 2021 02:09:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuwNsF5ZpIpNH5ASvTqA8Ugw9h917Gf3JdALJe9dvCuc41ddsVR5LsO5bh+BU+eq/mLHwB X-Received: by 2002:a05:6402:ca2:: with SMTP id cn2mr2108891edb.73.1614247750191; Thu, 25 Feb 2021 02:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247750; cv=none; d=google.com; s=arc-20160816; b=CEi5zqu5LKiLZTDMh1ivQcc/M7RPHLMlHpuidIzqOQ4XBYNkEmX61C2k+FC/GPAf5i MucfRzwoRlRI0lrui4ELSzXwZbNeo0e9rLdw/ypcNJIOSPYGC8rPslQVfWMTMF3r6YGB 0G9k/g+GvnGUj0JCUWe9o5NAJBB4taPOVAVHUq5CRW748v67q/TrVBrnf8fITvjhNwpO 011BCa0duGTgGRSgu9J9xmfHiHjHjifeWYeD8WsrOkHuywTzAk6Aq9/81h+sxqlDP5E0 imqiNKyqBUIEOqmhQjJnrSANnjWSQs9Xwbd8lKoMiAY6JrAEu55LeqVCMQ3JukgUD74p +Stg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6/h4bS9wTTLcid78Srne2U3kB9d6th4+MZlcLvWTP+s=; b=zQn+XUzDkPK7lVZqBcWRHCtuFFJvjZa3sITI6rSeGrvyQElF/keTX8iQ9z+Kq+DIbw ILXZxqzybiakyWAb0T2g+AHINqeunI4k8NWtRtiYFbVuz+n/uRjIYsVnK2tydHsrkjka 4fnTWHoxGjx0By2wxD83LKEBW/CyPitQe/J+BYRcBbDJ/4dzUfVGAyZqF9FT6iDBHZJu 00yV+BuKrVPQcYyW+iAW/YMDMdhvY9wyTDAYAxjUScFhZdlqzksgnSmt/wKV5kiH66WR zcdjAJ18675o9jBde8+86aX4o49H73sgaf4RQHk4TaExDbCLvca9udMu2y/DQ9pvY+d+ lqbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MXvrhuwA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si3124598edw.355.2021.02.25.02.08.47; Thu, 25 Feb 2021 02:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MXvrhuwA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234478AbhBYKIP (ORCPT + 99 others); Thu, 25 Feb 2021 05:08:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233020AbhBYJ6E (ORCPT ); Thu, 25 Feb 2021 04:58:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 17DFA64F18; Thu, 25 Feb 2021 09:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614246888; bh=rIKH2dzA7NkvORG2NAIyk2hdXKgi7jv8oJ+lkDdUzHE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MXvrhuwAEmr/A+Llllga5vlhCKbnNfVe1KkrGCk9DXLQleanxYpBql/149EQPMEVi MC+3dwz2x/+7a6L8JBgStVPlPYxnfoNc4S6c98V2LgdroyVW5wk4uByvWaCBDReoRC uYfhBm2rWPY53rhAsOH0z821hQ891IHOzRcsF/+8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Jason Gunthorpe , Krishnamraju Eraparaju Subject: [PATCH 5.10 04/23] nvme-rdma: Use ibdev_to_node instead of dereferencing ->dma_device Date: Thu, 25 Feb 2021 10:53:35 +0100 Message-Id: <20210225092516.745691736@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225092516.531932232@linuxfoundation.org> References: <20210225092516.531932232@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig commit 22dd4c707673129ed17e803b4bf68a567b2731db upstream. ->dma_device is a private implementation detail of the RDMA core. Use the ibdev_to_node helper to get the NUMA node for a ib_device instead of poking into ->dma_device. Link: https://lore.kernel.org/r/20201106181941.1878556-5-hch@lst.de Signed-off-by: Christoph Hellwig Signed-off-by: Jason Gunthorpe Cc: Krishnamraju Eraparaju Signed-off-by: Greg Kroah-Hartman --- drivers/nvme/host/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -860,7 +860,7 @@ static int nvme_rdma_configure_admin_que return error; ctrl->device = ctrl->queues[0].device; - ctrl->ctrl.numa_node = dev_to_node(ctrl->device->dev->dma_device); + ctrl->ctrl.numa_node = ibdev_to_node(ctrl->device->dev); /* T10-PI support */ if (ctrl->device->dev->attrs.device_cap_flags &