Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4630696pxj; Wed, 12 May 2021 09:37:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeMWeRltQOpFWIrJHsTxPY3enA9NjUtA86yU+g6dVPudk9+soz9T1K86lRCoFvf0My77o/ X-Received: by 2002:a05:6808:690:: with SMTP id k16mr8017814oig.98.1620837427952; Wed, 12 May 2021 09:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837427; cv=none; d=google.com; s=arc-20160816; b=uDvm75SuKimzHGBOOn9o2OrOVGlL1LNgxUge8f4W+TMpnBrpNPzohqLR9o/KwKlL+D UdKWE2qRn0tMihUn4+bDylEKVTYoQ1hx/kjU29q//CUousEdoIvFq0YmTEorapJmJkbX fl3oa2C5Xk+MPN9aBfwx9wsppmM5Hqv5m1+wBi3+/zAVV0WhGPFNlbU7EiQt56MSeeSO bo983IlEUzv6XHbJHLfXwmCXJNa6oII/osu+rJAo1VXKIgBqL8q3Zc4Ws/Xu7oscHiT6 We7xpURGyi20p5h92WE4TKdi7eRiycKc9XpVR+mnRLpc3oSZVEIwTRvO2yzF7dNAKZcB y/sw== 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=cdgaC9wjLP4mT/ydNouegV2LSoKCTO1N38NsHbSgjPw=; b=rbvCD3Cf/RqJubdi+u43id1ME5wtMBDb2uYdB0z7GzbHlQ5IdOGpzGxNZUs+WQ8hrx pafo6Vcg1JAilmTsAJROpjxZd8sGjvyBZhUMFCrK1zLystPf74uLON2O25oeF11Iu8c5 FL3IZdvXU63kDPdHlXFibduYZaEwaO3ACnfysIlpuv/hNJWZ3UjT7rlHZnclWasNOJub rdOoUl76+8rlvDR5pjTjBB8ow70KPnRjYAFXyHi8HxNb/14YBVAfvLkRyQrHHtJjafs3 JEiZjd37M9bMYnNjn/fiICYioQaUTtIbaXj+7C6w+yqWN4IsY+USuPcmVwvRczO0lM+g pJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b9x49FNJ; 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 j187si443186oif.204.2021.05.12.09.36.53; Wed, 12 May 2021 09:37:07 -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=b9x49FNJ; 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 S242757AbhELQfq (ORCPT + 99 others); Wed, 12 May 2021 12:35:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:56600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234199AbhELPlZ (ORCPT ); Wed, 12 May 2021 11:41:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 919FE61104; Wed, 12 May 2021 15:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832895; bh=8/JIDKouSYg/xwkLP+eNHpCCoB3Kb49A5+8NdWiXhB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b9x49FNJ78RMCXX0mayfc/Xg+u7At5+WL0Ymc8Fx/HBSp4UnCVtuc7IIIg0cTsuXe lQ6mYQbTeAfJruJKfPl6mUA4muB7g0VdiXGPR9xVrWDAN1ugmdt7K/Q9rahKz1IAPF 1y3dIFKAVzw/iiEcJR02AK+672YTZ8Qp8HtWzo3k= 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 5.10 466/530] vsock/vmci: log once the failed queue pair allocation Date: Wed, 12 May 2021 16:49:36 +0200 Message-Id: <20210512144835.081973866@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@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 8b65323207db..1c9ecb18b8e6 100644 --- a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c @@ -568,8 +568,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