Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp156049lqr; Wed, 5 Jun 2024 01:53:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFz2ovvvej8DOn/amUwap16Bz2op7lH5oosufnTPsUliD1iuhDWh2/arPKPS4qR4sKljGswbWpDJV57c9B6/L/X9fsq1KJ0OscyftD0Q== X-Google-Smtp-Source: AGHT+IFqc8sD9H+bOnPyM4Wu8VhYoe5tZTXAnAvA3TWPYBps4sIvN+dFJaBBRcrlLqBSd7uPLQMJ X-Received: by 2002:a17:906:cc82:b0:a69:1137:120a with SMTP id a640c23a62f3a-a69a002257bmr119164566b.51.1717577594108; Wed, 05 Jun 2024 01:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717577594; cv=pass; d=google.com; s=arc-20160816; b=WBE/swrTc5LO7sOQpcbFyHYmjgzTOWmibkuSaq3RLi6LPB93agJcHgeE1KWFIWWUv4 19JK2LhHrYgPBC9Dspc5VVk+8PmvvIbLNABsiAg/2fA4QycoTcwLq4UeexqM5kOfBKu1 IIG9T2DTx5+bpp36EfUqjrveA2ddVHVW3cHCw0ajVAyrg31S5h7POn3zCTMxZXaG6wXN aFT2f6p0YdMdd4Mj7sRdkADc2XSSr+ktkuBCGy9/n0vPjuT4HBj7AhD/447vXbyRMAP9 HXlAyQQzkZuKDlWW4/rftWdcQNYkerWNa4h6Xj/DM4jnDKzY3bDRdlI9CoWvQ0zqHwgO gJMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=xb7dTBUi/x9EzV8TfWd1zQJXCt5OV/zmf0zC0Db7niA=; fh=JVyC39CaUD9v2AW0IV6vf2PP4VffdJpQ7JvFOQAhrk4=; b=0gcuOzTrEf+BUS8ArAwdj0SooOMqfgoJbOqz9eI4Izg8tUZBCbseypKHD56lCG7UWH aAVM8BWJ7uCgooMNjMUhWavewTTv2bkjJDBzOrhE+R++oQ5tRbdAUYHXnaBQQsfy/DFB F6yU3dZQCDNRfn/WST2GNxHIzftCJoV3skIQ+DLwFmYKIh1fQKSgLlsfjGBWCbFnitxE MLHv8PH3OoPqgNjJmtUf4CaArvD9rRzwNNdvAx4ooqnk9ZfQLmUlfUGHTvY9qCdtqDyn KLmVkjcT9Is/t/Klj12JI7fZFpKholtdJGzLDoRUN2gNADqBiYH62ItvVveqQTNvUnj4 k6Zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3563-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68aa157394si469484566b.660.2024.06.05.01.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3563-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 683B31F21E76 for ; Wed, 5 Jun 2024 08:53:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73CC8F9D9; Wed, 5 Jun 2024 08:53:00 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1EDD137929 for ; Wed, 5 Jun 2024 08:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577580; cv=none; b=KNW5LTu8zwXxWJFw9tn520+B16hqGDtSIiS8vDe55V6CbWYxmwvJAc3K/k04iLtzx5K/EKmLdjhz1hvK12ixSsAf47qGcobpwt1pw7qZbq0yLY/xvHR+0jc2DotDiIjyaht/cwsWbavX7pIgEA39APmHG5/Qo2Jk5Ef5USG/kMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577580; c=relaxed/simple; bh=xb7dTBUi/x9EzV8TfWd1zQJXCt5OV/zmf0zC0Db7niA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UlW743unGfxJjSpIwOly/rnUXZhxOujwssl1hL599gcLnx9aPDCnNzkrZCD769Ev+wha6sfNhWiFK/9DS/ZnhJmuFyZ5/DGZuKF8gIPaITQt7cjrQ6xyjcZPqt0rnCSyP1tSAPZFq5SyzFbrJWmMBbESMvk/q3v+ZePP+RLuCwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-35904026d72so273009f8f.3 for ; Wed, 05 Jun 2024 01:52:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577577; x=1718182377; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xb7dTBUi/x9EzV8TfWd1zQJXCt5OV/zmf0zC0Db7niA=; b=lT3P2trbFbbqc103JXwh52HmBX8ToPLef0ZcWXWKsj6KylCEiqpISdPBJj8ftnUYIN zJU5kKOAs2Wd2vZ3SnbbCzBYEjydsv4ixd/tyHTMbInA9iuZ0xAnIyT9J8j2Pz8zTxMB CzQLJ2cIahBnjXv0w+MYEE2hzE9tKOc9QLFk8OfzUcXSy7yspa97IKi5vSKzbD8PnJR6 hUJKjkPGIf0/uhVoGnOJP6nTqhZ80lF1W7KXb+KDh56KFVymmk/sjeP16cgMcbSUquXn AlObxa8li9eylKetx1iv3pCPMcSxVaSUpA1QCV01Eyu1EbiAv3BypfvdYcksHhnsjQCZ 55nQ== X-Gm-Message-State: AOJu0YxgxxyHOQLNJUafdHnXyUKNuO/aKq4yoQKQJp2qIHf+aIBLuL87 JmPfTeCJ51SpTpya6rGA5tjw1XRMTgEGrdsSYFbeTboI2n/vLM6+ X-Received: by 2002:a5d:6792:0:b0:356:49a8:7e0e with SMTP id ffacd0b85a97d-35e8ef7ef4cmr1124838f8f.6.1717577577115; Wed, 05 Jun 2024 01:52:57 -0700 (PDT) Received: from [10.50.4.180] (bzq-84-110-32-226.static-ip.bezeqint.net. [84.110.32.226]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04d943esm13695272f8f.47.2024.06.05.01.52.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 01:52:56 -0700 (PDT) Message-ID: <90b3b9f3-ab93-4909-99ab-f2a519a74a7f@grimberg.me> Date: Wed, 5 Jun 2024 11:52:55 +0300 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/5] xprtrdma: Remove temp allocation of rpcrdma_rep objects To: cel@kernel.org, Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org, Chuck Lever References: <20240604194522.10390-6-cel@kernel.org> <20240604194522.10390-10-cel@kernel.org> Content-Language: en-US From: Sagi Grimberg In-Reply-To: <20240604194522.10390-10-cel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/06/2024 22:45, cel@kernel.org wrote: > From: Chuck Lever > > The original code was designed so that most calls to > rpcrdma_rep_create() would occur on the NUMA node that the device > preferred. There are a few cases where that's not possible, so > those reps are marked as temporary. > > However, we have the device (and its preferred node) already in > rpcrdma_rep_create(), so let's use that to guarantee the memory > is allocated from the correct node. Reviewed-by: Sagi Grimberg