Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1888979lql; Wed, 13 Mar 2024 10:55:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfB459xd9t7g7Thm9ylBlIZRpE5KEGLG+XS5NzmO1U35bVl9QtEU21DT110GjuAQwgsKl1gm2jTiwBxDVstqyenlGDqXXRbA/T/xqsrg== X-Google-Smtp-Source: AGHT+IG/1nBVlw8NpHPjwraySULAY2m2E1bCp3g3PSM03xLvDeZDCuIbTqwXbWUD7Of+BMmERhal X-Received: by 2002:a05:6a00:2349:b0:6e6:9788:61d with SMTP id j9-20020a056a00234900b006e69788061dmr4355090pfj.17.1710352545634; Wed, 13 Mar 2024 10:55:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710352545; cv=pass; d=google.com; s=arc-20160816; b=TinX/ZvO3ioalQZs+JN80elpjO0UQ4xYbKeuJGEg3cdIocIFCoozX2C4dtW4FklyTu HFLl8J6crkYMAowuNfqC58ggm77bTuXtQ0V02Di1EH0DKLYVXMOv3nORkrSMUxCYzl8Q 56a9344Qh32sPIyt3YMcFMAlrASM1naTZ7opVl2YDe760o57EtLNNCD5Gw9AT+LEjbKt NYV2bTrI9neGq29HeTJy8lcoFq1FUAypck0AhjK8pu1ErhRxj4jak6SdjBn/O9qnDHDL NowwbhKcENyximtw8Hghm9DvPWWZXgoYEq+YEZ5yZcl+afwUHTWlytHfZz8f+6MijCWJ jfMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=b3saNg/gBOq54rzG/2h0OdB98PDsdaC5L0VJwmsEUI8=; fh=XTMbQEQqcMOdE0fNySe8ROmqNlb3yoJ3eQivkeYGiKs=; b=wfjVxtZFUKwNQnqnt8SQxP5MDGHOUVHVaS9DjNRsv8W7uHUHC1reSxXCtJz+VBKsjp LMmJDEn4n1Cg0A54fXKI95ZgDsKgzAJf1e1+yi+C/PSSoApELn3q0X/diS140kVfb1kF 7hGYBZ5iSa32BRmf0gd3U2DdNfhpPsnk96RTYCYcXNxWpeWEJwUWj2nMhuhZX1UDXtGb prqTbltwnTa678tyS+pjUeWIzGoIhrf4a6OPY7AZ3oxDoAgZhEdS+qedy1gMIN671Bbb 2QWuT+pwoUfVGpBpeBhp66gIe8WXgyb84Gelt25rdLNrtgOTjGRfcBF59tOnarcisxm7 lzQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUYPNu7X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v11-20020a056a00148b00b006e6953de653si6503827pfu.315.2024.03.13.10.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUYPNu7X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 27A1F2834C2 for ; Wed, 13 Mar 2024 17:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11B5A18BDDC; Wed, 13 Mar 2024 16:47:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SUYPNu7X" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1D7E18CEA7; Wed, 13 Mar 2024 16:47:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348478; cv=none; b=VFiZAW72m2RdtAh4eiJcCIyL+figzg7BTgLGQVbGNdk38FZlPgGjyPHE8oSq0sCEhwmBEhCpoZZxVlWvn2R2mzJd4YGZ2DfbHQV+0y5deFn2j/kHae/MCUtmznAZVmv8neb3KGfk5p98mv49G4Rkw2lkWjqTE7+lbPZDvZ/XNao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348478; c=relaxed/simple; bh=XuQhqZUrOCgjE5sn6FggSkuNapMlOOqVxZbhbkA4jrY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HeiUyAyE1V9X0K7Q6gY8OkC6U2NPWjzR29ApNAJWCo4irOhxidcjUvRE1jdbCtaNSFUBWrES8Xgmtp57Genf9XAbDfD7+9BY21sVqVQwN8eI5tk87VPNjcUEn61mo3JVi3gc1M3H/ScJ3pGrI6qeN4LzIre6KwkF5Tmc1wjJeHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SUYPNu7X; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2B45C43394; Wed, 13 Mar 2024 16:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348477; bh=XuQhqZUrOCgjE5sn6FggSkuNapMlOOqVxZbhbkA4jrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUYPNu7XlogvB77vc13dBPB61lDFEh4qjCZ7H++C7V5ytilMhiWhyCVdnvInRYPlq v3gU/JJQd7Mx5CNaTMfd2U3LDWJgIaYFaOQvIEzuobbLDJTvXvVnyp+OogL3Oj4TUg Xtzql7etY68EopUeEjJKv/BOGg6FPCaJEkQYnWzCz6spF2aAFfWbDGhjrr5wlpJODh tc65YB1A0CkH6rfFN15zbgg+ePFOFLDcByIl5D3EMJG+y1z+UGuev89J9MhHxFRbn4 JDp+piyi31NRKgpeKgz1sszODcfbQX5wrbHjZ9zmtQxXrxIhlFnNWGoXjBegsHnG3Q S4ytB20bPAy3A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Andrea Parri (Microsoft)" , Michael Kelley , Wei Liu , Sasha Levin Subject: [PATCH 5.10 67/73] Drivers: hv: vmbus: Drop error message when 'No request id available' Date: Wed, 13 Mar 2024 12:46:34 -0400 Message-ID: <20240313164640.616049-68-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313164640.616049-1-sashal@kernel.org> References: <20240313164640.616049-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.213-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.213-rc1 X-KernelTest-Deadline: 2024-03-15T16:46+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: "Andrea Parri (Microsoft)" [ Upstream commit 0c85c54bf7faeb80c6b76901ed77d93acef0207d ] Running out of request IDs on a channel essentially produces the same effect as running out of space in the ring buffer, in that -EAGAIN is returned. The error message in hv_ringbuffer_write() should either be dropped (since we don't output a message when the ring buffer is full) or be made conditional/debug-only. Suggested-by: Michael Kelley Signed-off-by: Andrea Parri (Microsoft) Fixes: e8b7db38449ac ("Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening") Link: https://lore.kernel.org/r/20210301191348.196485-1-parri.andrea@gmail.com Signed-off-by: Wei Liu Signed-off-by: Sasha Levin --- drivers/hv/ring_buffer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index a0ba6ac487368..a49cc69c56af0 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c @@ -326,7 +326,6 @@ int hv_ringbuffer_write(struct vmbus_channel *channel, rqst_id = vmbus_next_request_id(&channel->requestor, requestid); if (rqst_id == VMBUS_RQST_ERROR) { spin_unlock_irqrestore(&outring_info->ring_lock, flags); - pr_err("No request id available\n"); return -EAGAIN; } } -- 2.43.0