Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp861310pxb; Tue, 1 Feb 2022 11:59:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJybFj58NJcPKkhx2Km+8f58Q/MST7r3B9IvP5KIY7nNII6Nmjpju4usWgfbBG4KudhJhlNG X-Received: by 2002:a17:907:3ea8:: with SMTP id hs40mr22272332ejc.48.1643745548392; Tue, 01 Feb 2022 11:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745548; cv=none; d=google.com; s=arc-20160816; b=SJ6RqHDFKqZR1gXMKj+gwZxUfresf5xS2duQFdNjZ0kVRf/OdBR3EEubjS+06TGIST T6LMdWTty+S1sW/GvJTp8Ym9wqhzzTBOInU6U2xWBo5X93h9BdmUvDfSX9CeW132Vu0T 6zOBAS3fJNJZiE0i8AhVmOcOoQJgfqE8CKAca05zQmL2ps2jaHnHcXZiIp/0KNZjOFPi 9o6cphOK6S2pFE+p+mfOM+MfBlIlUbsPKro3xbHnb+W0LvAkJr0F2hZ2qDWtP6q+i9Il vRXZI0sq2yvGfo7rNXXX0gf/tscl5Zc7eR3xJ7qPcIDbksC++gJ4Euo/iGSLOru70lke f/gg== 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=ANyt8A5sbROdDKcN5AMaOKYE1COjjlnL7mHFcA/dv4U=; b=RH8OoBa8hfNc1qDSWW7lpVHk+qtmS7woOjIf4+kqlx3iEZxyaoZwppuZTKceDbvLGZ 274HCz1daSCZFoiN2yfBtQuqdUyohNOFOKHhR3AgQMt58Lv9XSdXcRcUGcpyI+6S2P32 dYKFaEPnYMByh5bgMEMVx8P94gY3BAQ2dInuqhvL1KhpuqLg6KqIOj3ebUnbZZ/XGEax m5EIzeEKjAfeztlcLusQeagag5YGfHIFf8IvG3jXr988of8OR5AhwzL1M+4frj+DIJcN ovMQfmuX/Xm9rHZkNmIwwIWLhhGPWtacnVJVdiSuQ2nf2ZqfvNh8kQad1Jw3Iq5l+nBp FYQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1uacvQwV; 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 sg41si10275998ejc.396.2022.02.01.11.58.42; Tue, 01 Feb 2022 11:59:08 -0800 (PST) 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=1uacvQwV; 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 S1376559AbiAaLIh (ORCPT + 99 others); Mon, 31 Jan 2022 06:08:37 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:53422 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359429AbiAaLFc (ORCPT ); Mon, 31 Jan 2022 06:05:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D812CB82A5F; Mon, 31 Jan 2022 11:05:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00BA6C340EF; Mon, 31 Jan 2022 11:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643627129; bh=ae8R5cR9og/FxynuOn/VIw3QPeA3VAi0XqcCVhZbz3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1uacvQwVTPGI6SjWRLWx/D3oAEFcUug3cFDuhkKuERWG1q5cgmld+MWY4G1FlU9Ul 4Q/nJ6VPdBclrygP59EMd9f9RYuPc29f2XzaJDu2ijaNu7JqrrfMQ9PmEIyILE5xHI NgjsxxpalgOkLg3tOpGYUeDUBJQsvj6fgHGvQ3vw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sukadev Bhattiprolu , Dany Madden , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 084/100] ibmvnic: dont spin in tasklet Date: Mon, 31 Jan 2022 11:56:45 +0100 Message-Id: <20220131105223.274263195@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105220.424085452@linuxfoundation.org> References: <20220131105220.424085452@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: Sukadev Bhattiprolu [ Upstream commit 48079e7fdd0269d66b1d7d66ae88bd03162464ad ] ibmvnic_tasklet() continuously spins waiting for responses to all capability requests. It does this to avoid encountering an error during initialization of the vnic. However if there is a bug in the VIOS and we do not receive a response to one or more queries the tasklet ends up spinning continuously leading to hard lock ups. If we fail to receive a message from the VIOS it is reasonable to timeout the login attempt rather than spin indefinitely in the tasklet. Fixes: 249168ad07cd ("ibmvnic: Make CRQ interrupt tasklet wait for all capabilities crqs") Signed-off-by: Sukadev Bhattiprolu Reviewed-by: Dany Madden Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 232c68af4c60a..c7be7ab131b19 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -5075,12 +5075,6 @@ static void ibmvnic_tasklet(struct tasklet_struct *t) ibmvnic_handle_crq(crq, adapter); crq->generic.first = 0; } - - /* remain in tasklet until all - * capabilities responses are received - */ - if (!adapter->wait_capability) - done = true; } /* if capabilities CRQ's were sent in this tasklet, the following * tasklet must wait until all responses are received -- 2.34.1