From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 C73C519E96A for ; Sat, 28 Dec 2024 18:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735411816; cv=none; b=OEigoN0a7DwyOMExFDzPDBhmrRIJY7iX6JptdtY9YDHuoVIW0aRlItgqtsVtHZJxE5/2w2ZE0FguVjy0Imp1TEtGD65SAu6xihB2yTSq1eK72N0l+Kl+ISzmkjGEtaN+cfxP7wczT2kpuqItsNHYS38ei0CEAQkNNtMjXNmdPp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735411816; c=relaxed/simple; bh=uyLT+67e6Kxba5Dx2kHvNVOmE7JcVcSp6B/wxhMWlAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dFPX+e7LBfFhLYPRF+wRW9tUPjGPtHH3fTxndru3NSHS4iamcV/vdscG1YAT3EktPajo800N+2iBq/laicAfwc2/31hTN6x2BJK43oKM1DUS1MzpJbQeJZx3QOV47zwSLVCUJh3XP9urJGkD+nb/3DmjXVORMQVLgxDSo7Tpuvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FX5yxX6b; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FX5yxX6b" Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-e455bf1f4d3so7767523276.2 for ; Sat, 28 Dec 2024 10:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735411814; x=1736016614; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AENc4Z3ax7rwx0f6UlYvVrtWhnoX8l+2h80qRPNl/Jo=; b=FX5yxX6bLXUKRj9kXNrMT4PMRzlQ9J3AaAn/F9AOJiP9IpPm20RWZiMxRbeFThM4O8 coJo1SzABk8vKuujGq+9pBVs/GPhZsfWZQ42gclb9MxlCos67iFumZAvabhLHnPzlaQ3 GdwaE7GyjPXde05Fnr4l/MCxgQW2vSTLxJ3VZon0S24uZ5c18AI7OU/tQqAJO0vJRBvA cZ4ubznnhTwzS/aR+9JRBcireTtTm8QvZcXP0y5eoPPGbhP6a1EfFl3QYEv88z9RY8f7 CX/V4ZyyuDrm3VUYbA77hpBHwrqHb+UduIXXXpB4XKs9WB4+W/Yg1xVe92myS9291/7P jt2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735411814; x=1736016614; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AENc4Z3ax7rwx0f6UlYvVrtWhnoX8l+2h80qRPNl/Jo=; b=LZDSAIKzX5gKAtl95rJ4ECWg+Cc0+yXerZM6/Ox2j27191PphWGZWMXMJkXlVJ9V+M o9WSA6hj9vObSIKzKRUrJT0eqrBErXJKMNnNUIHv+uU7EjAfwZLrorj49FLhGrhZxF3g lFpIcGcweymDmJWSP0uEujacgkBpOpH88RaEtbYQuTBWEFYV29NiyUBfT5vCzvP+vnHs UPMxVrpOABzIOzWBtoLIiQIZ0oYrtcIFaWIWHPeNSSW2E+rjzCg1y+JWjBtxL63vu1r3 HcLZyIVHDYsREabwPB5JdRT0x6iw8a/bmMMhwsn/gedMsxpjErdw5GmXe4VpZ5SgibtU vN6g== X-Forwarded-Encrypted: i=1; AJvYcCW1f96mwF9Zm3O2tXTMBlRFH+FOE/opCVH2GuwBX04VyzQA08/GZF4rZW4kUqWSoiHgqHCkpz74xH5qXi4=@vger.kernel.org X-Gm-Message-State: AOJu0YxiltdiVEWACrYtNcQxB9QhIifpfZ4mYW3TyY3k7xtN/euga2I5 Qv6fVQjvmTgPafmNyqqe1Dk0/m/T2Kh2ZR6XOsp4rNOR7z940A92 X-Gm-Gg: ASbGncvZf5f2FSMwixee4Qq5CjQme9c7OGziL52N6x06lFkphjxTAf5r+RfV+HrtxXt QYH/otsA9vtU9kHJk/sDAsK+0l6V44wk+vksEuovjO5T9H4mPqGo3Z/eeSwrTD4yr93lx33RNQN DwDMp5jslsvMR/Xdx9A8hD7RR3Ti2SQDWCLdq1tp0c6htgp77qopvsUzZtPW7fHLYDnGinnFOI/ 7zkivL2UUl3Zf+n5u1hyIWvQHobH4SeFUXxdVXGaAiqSXu/wdJyQXVK5YBAb7nFuZqzLT9j1YRe GDhj2QvsPd+V6Szt X-Google-Smtp-Source: AGHT+IG7gNQAzyDpww9VP81evosoCFfnUVTHMGuH++JEv5/DY1rdC5GzeEk1nuPACT/z7N1na4UEHw== X-Received: by 2002:a05:690c:6188:b0:6ef:820c:a752 with SMTP id 00721157ae682-6f3f814565fmr201190567b3.20.1735411813799; Sat, 28 Dec 2024 10:50:13 -0800 (PST) Received: from localhost (c-24-129-28-254.hsd1.fl.comcast.net. [24.129.28.254]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6f3e7499b47sm47971617b3.64.2024.12.28.10.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Dec 2024 10:50:13 -0800 (PST) From: Yury Norov To: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Cc: Yury Norov , Rasmus Villemoes Subject: [PATCH 10/14] nvme-tcp: switch nvme_tcp_set_queue_io_cpu() to using cpumask_next_wrap() Date: Sat, 28 Dec 2024 10:49:42 -0800 Message-ID: <20241228184949.31582-11-yury.norov@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241228184949.31582-1-yury.norov@gmail.com> References: <20241228184949.31582-1-yury.norov@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Calling cpumask_next_wrap_old() with starting CPU == -1 effectively is the same as request to find next CPU, wrapping around if needed. cpumask_next_wrap() is the proper replacement for that. Signed-off-by: Yury Norov --- drivers/nvme/host/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index 054904376c3c..088101c57f53 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -1578,7 +1578,7 @@ static void nvme_tcp_set_queue_io_cpu(struct nvme_tcp_queue *queue) if (wq_unbound) queue->io_cpu = WORK_CPU_UNBOUND; else - queue->io_cpu = cpumask_next_wrap_old(n - 1, cpu_online_mask, -1, false); + queue->io_cpu = cpumask_next_wrap(n - 1, cpu_online_mask); } static void nvme_tcp_tls_done(void *data, int status, key_serial_t pskid) -- 2.43.0