Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1591693pxb; Tue, 8 Feb 2022 23:23:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBZDRC7piJB/Zo8eSqvhuI+ctHji7uWBIo7YqZSyJqYZKn7B/cM6xqwKOHgxNNEfKPCDM7 X-Received: by 2002:a62:6141:: with SMTP id v62mr850942pfb.61.1644391428063; Tue, 08 Feb 2022 23:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644391428; cv=none; d=google.com; s=arc-20160816; b=AjsPh5Md5AyMZCB5Vy4OJRK7ed/83Ful30wdslbLs5d4vfYguHTEx9eJtSMopUG8Bo hFzrzbeCB9i+RVLJUDdeAvMN82M0awUeroNJpRLWXlI+0I5VAOFZM1VBThbQ8r5Z8Qjq /ZPZI1Pam+9+UP8rCIQrNd4ftcbKxNhgrxCCA/hy+8Ovgsm1neLF73tNM50Gkpek5zeM i6BM7X0BVLI4+sqpeeaq7RMpfMs2NWLBMcSsS5HMd0ioFXq5eXvoKMSjCFcc+O1t4+pO BDooL04wXtWuFLuMGWhdCtMA4bAMXwK4DIXW3hJIRGyQUKXx0sYBUIHx5k+ax4ursPYH UWNw== 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=nekZjkjeJsWGobzwWZsL+Edm9N770AQUfV0+DvlSt/U=; b=hXcTthXFKb7orHM5Wn6VKqzZ0UYpuk09/Rt0ElRHMEf6jhzLzX5Vaw35ZSeWKsJsTz HY3+7dOB3gO3kJwWL25wEbZQmwhMXx0+JWPKYCsAo0Ct7TOx+QB3yuoo/vxuI+svaR+3 0kNmCyjUcqLJUWC9FYLIH5HOmJMT0YB89v2ecfECX9+j1H5WVz8bTUulJZdJKTMFDDz4 UycT8L0rLGxrsEPRG7ymmr7UkkmDfFjVtC+qqo2SRK6NCsj3nLYPuRGQq45rc/CPe31P AZsw4efgMMR3KMhz4tHVt51KLXwjGTd4DgPqIJ1PNhUPNckDbjtMfy2Vr2uhWJZbdlro Z/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wsehwxyn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r131si15311101pgr.141.2022.02.08.23.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 23:23:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wsehwxyn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF995E06D607; Tue, 8 Feb 2022 22:36:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382940AbiBGLVM (ORCPT + 99 others); Mon, 7 Feb 2022 06:21:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378442AbiBGLPv (ORCPT ); Mon, 7 Feb 2022 06:15:51 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 280AAC043189; Mon, 7 Feb 2022 03:15:42 -0800 (PST) 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 CD925B811B2; Mon, 7 Feb 2022 11:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F12C340EB; Mon, 7 Feb 2022 11:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232539; bh=E0xTipUhEAeAm5xcpIQ8metjaYJRYHp/n2HOtYfDQ3U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wsehwxyncqkKA+iXlYg+rgtjnOtZTjIE5SK8gx8t1uDl4MuRkSEjz5KnjWrm7Hlo1 HSmttPr1seWZsoEZo8xjkDTmFynhqndEpd4tZohYURFezbE2Ye0vL82/uzt0bi0391 9MtZPZ2nmGZ8PmxYEVCNwWo4fpYHi3kWWBsPGTkg= 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 4.19 42/86] ibmvnic: dont spin in tasklet Date: Mon, 7 Feb 2022 12:06:05 +0100 Message-Id: <20220207103758.918290613@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103757.550973048@linuxfoundation.org> References: <20220207103757.550973048@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 9174eccfd9329..ffea634e03e8a 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -4493,12 +4493,6 @@ static void ibmvnic_tasklet(void *data) 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