Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2119057lkv; Thu, 20 May 2021 03:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjZzA3GoCz9gfUqgFekDjb0fiLeIJQ2wGvWor9/7w0E8G6LrEM8znIvCzigUOUA6lNMkqN X-Received: by 2002:a05:6402:406:: with SMTP id q6mr4344497edv.110.1621507918850; Thu, 20 May 2021 03:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507918; cv=none; d=google.com; s=arc-20160816; b=tta0auLncQYRT3/47nl6ypoegbEWqaIrPY9kFcgK23ZjIP65N1sHsQ7u4SgypYcpsn I6PktzZVGrGebHbiTrTmEAK9eU8vLyGvkNFe67yNae3ebBDKsEt6u7jv+IC2uzHEv91s JMJhVSwybc5c8qrPZDxLsIPaYzNU4bHs+ZGxYWiJIfUt3+8zqjQjBiuYpKJ3Q85p83GD gMqvR7626dsMU0UtRSMZ4WsQ92KOwCXpLptB4+YJw52wLCTFHOsgwZ/oAuE1V2dtdIyV FnQAIQM7ATTSAx5kpJpQK2ERlUqbbY0tU6RIfovgSGB5PhlAmo6wwpJpzz4sLiTl4bB9 dx4Q== 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=LIkCph/4TjEGINOwmm+z/SZopcqNJxNThMBWylk3LGE=; b=q0zeB11ed8z767bd+18hEAhTXDlCRUIHqh5jwlHwOhSqYrySq69vFFkkXGHzCdRgTk /PbGGtDTfkMW4bQplFxE10DEoArccDqBeJ2YSOFMo+cwH5kpXyMQ13IKNMJ4ld7uQ2PR QTQrkP4Kbgy0cFpYvSn/FuiCmOUxFTPFgEv15dZV858jtOgDi2e/EgsK+88UhmzwkQXq 2+XzZl7E4OUUCLFOkGcikYgRowtRVtmcOmgexPtY5NbnCCIvdkFb3GZy0WkmLBeXX+mN aP7pTM8YTzitG4ri+idj2EYMmmDhtx7a4TFNcwfuY/wPVgGfCqHGf6O9/0hCEL3g3yYA Q0xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uelpw/qG"; 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 m1si2906657ejj.42.2021.05.20.03.50.50; Thu, 20 May 2021 03:51:58 -0700 (PDT) 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="uelpw/qG"; 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 S235422AbhETKts (ORCPT + 99 others); Thu, 20 May 2021 06:49:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:60472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237089AbhETKdk (ORCPT ); Thu, 20 May 2021 06:33:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3986C61581; Thu, 20 May 2021 09:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504380; bh=LGNpyK4Do3h3CvzevW2+nFJk++3+zBIXTaQn1hxw0QU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uelpw/qGHEQu6kJ1G6eKp7pS5XbHABdJQptqkspaSI7ctPv1SUgb6LMe68z7UJt6d 42LwXN3W+B0ZgbainLSW6r7OhCGFypcyVFJHAcmpeDaLyAe9hPn3XJzg3ymXhnqmop BNmpmQsdRGWRFDRQiN1HEdI3Ay7TXL4OpUrUNYwY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefano Garzarella , Jorgen Hansen , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 220/323] vsock/vmci: log once the failed queue pair allocation Date: Thu, 20 May 2021 11:21:52 +0200 Message-Id: <20210520092127.672742642@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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: Stefano Garzarella [ Upstream commit e16edc99d658cd41c60a44cc14d170697aa3271f ] VMCI feature is not supported in conjunction with the vSphere Fault Tolerance (FT) feature. VMware Tools can repeatedly try to create a vsock connection. If FT is enabled the kernel logs is flooded with the following messages: qp_alloc_hypercall result = -20 Could not attach to queue pair with -20 "qp_alloc_hypercall result = -20" was hidden by commit e8266c4c3307 ("VMCI: Stop log spew when qp allocation isn't possible"), but "Could not attach to queue pair with -20" is still there flooding the log. Since the error message can be useful in some cases, print it only once. Fixes: d021c344051a ("VSOCK: Introduce VM Sockets") Signed-off-by: Stefano Garzarella Reviewed-by: Jorgen Hansen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/vmw_vsock/vmci_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c index ba4cb18c4b9a..c1da1ce3d36e 100644 --- a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c @@ -585,8 +585,7 @@ vmci_transport_queue_pair_alloc(struct vmci_qp **qpair, peer, flags, VMCI_NO_PRIVILEGE_FLAGS); out: if (err < 0) { - pr_err("Could not attach to queue pair with %d\n", - err); + pr_err_once("Could not attach to queue pair with %d\n", err); err = vmci_transport_error_to_vsock_error(err); } -- 2.30.2