Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp632645pxj; Thu, 20 May 2021 18:29:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc9lhgC4AzeSUnmfJypnBueZQh4Al4khHWn93dsB8YiVUbovr+ALtQft+KX2NyOl+jEDeE X-Received: by 2002:a05:6638:2594:: with SMTP id s20mr516134jat.140.1621560554202; Thu, 20 May 2021 18:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621560554; cv=none; d=google.com; s=arc-20160816; b=EwZyxOVYVLb1Cm1sxyjg4TSCKRcQF1QbhU/mr1NlDb8dJPrphhbepulye2v28NsakG rHpQt2uZuBIkJNhYsxyH431899zs5uYLDD+NwrEucrNBizwcHd+leJXoj5dmupYZdnLm NIDuryBMc/2KgOw094fKl/bYiUFxBgh+BCgg+NtVELleIag4iJZWZ5kRYulUTtNVXFXL U1sHX768tHXKBd+8ry2tN/Ymr/VfBvPd8nvE//fsPlZ/aT+UCY9h+3WgvFkJwurtB9xq 740qR9bA8QVFlT7BsgBsa0M0YaoTrpp5arbnr1ueJug/81bSsMtSzwQ0W3u3Z1kjfbFg 5Htg== 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=vibmX+guzGeSa5BvP/e+4Z5EOiQIrBsuRfwrV2aOztY=; b=WjxGFMRRgubgmLUnDqRt0KPoamQVfIp7FZoQboe/qZPTen/ruCkjf49pXwAJe2TRjR 2tZ+e1Uom4BuxRsLnY8qjm0NN/LxR6T0V8R/jfD/Cus9RZf8L23HK6jK9SsMlaG0KjD2 RQfiIbqdeLyTlj/3VTRt0Wl8veAQ30i48Y3Z1K+XfBBgD8XICuaHvFF+43Ayeo1P1jOj 8vWij70GDGAn+n/X/hm3UbUyCS13pfcMPBIAk4D4xlqzKACrT2tap0OIoUrvy64ToyAQ VBaj4B8QMWCpOyO+ADmTtXxm25HPOZkcTCQ2slTHpgNu5oKrx2J+KTnJF8ptRSkwjClx ZhWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1BXHZpAi; 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 y16si4216649jad.62.2021.05.20.18.29.01; Thu, 20 May 2021 18:29:14 -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=1BXHZpAi; 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 S242203AbhETLjW (ORCPT + 99 others); Thu, 20 May 2021 07:39:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240700AbhETLTI (ORCPT ); Thu, 20 May 2021 07:19:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4022861D78; Thu, 20 May 2021 10:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505419; bh=L700owuqNnrDur4amLaUtpvwjSeUO7C2Wa8E5QQUiBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1BXHZpAiPpbZZuZhdhI2l3FQ0S5VIJ65mIqvniQ7H5m8fsIz9o21w0qGkZBJw7o53 FcM9kaDeJ5myd86tJ+UmUPoGb3grtykSAcySFY8/k8mLLu5nJgpo4LGMZBvu+Oav70 +i9LYWqn2nv3iOu2kJVXuvtJeiIJh04V8Ni0dQmk= 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.4 127/190] vsock/vmci: log once the failed queue pair allocation Date: Thu, 20 May 2021 11:23:11 +0200 Message-Id: <20210520092106.401451833@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 217810674c35..1f3f34b56840 100644 --- a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c @@ -593,8 +593,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