From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E12FC43613 for ; Mon, 24 Jun 2019 20:17:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 707BF20679 for ; Mon, 24 Jun 2019 20:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561407466; bh=CdGmV5oKAVCLvTqI05Ci4mSJO3Aqmz8yls144VyFkaY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=mQASeJ5HqAiKKnB/kCw9rScJ4IkpHleCHNLszauHpleel8/G6Q66fu2fECUkOz51M 8U+SnlHiUTGztZFItNGCv9WeOb2Ib4/aWFV6lLMagRqQd9vDJez2xcR5+X96NEfM+E C3t/eBVVK7LblhPsF46mdImXbVUOXaJmxb8y06ww= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728512AbfFXURp (ORCPT ); Mon, 24 Jun 2019 16:17:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:47812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbfFXURp (ORCPT ); Mon, 24 Jun 2019 16:17:45 -0400 Received: from localhost (unknown [167.220.24.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7242920645; Mon, 24 Jun 2019 20:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561407464; bh=CdGmV5oKAVCLvTqI05Ci4mSJO3Aqmz8yls144VyFkaY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jpClYTIlLJ58vCFBnVFpFKF+gc8eTOzARDbalVyDppvP/aCl9REKj36+qERbhL1Sm sGwgvY/HvO+CKiCKc20xBu4tDvoGROR7+6XF1VRvg1cFfhC+UGW0Ls2E+H8nj1Tv23 XDCSuJSzxyFcWwh2cQMRGVmpFlCwWBTokoN7vjmU= Date: Mon, 24 Jun 2019 16:17:43 -0400 From: Sasha Levin To: Mike Marciniszyn Cc: stable@vger.kernel.org, linux-rdma@vger.kernel.org, stable-commits@vger.kernel.org Subject: Re: [PATCH] IB/hfi1: Avoid hardlockup with flushlist_lock Message-ID: <20190624201743.GB3881@sasha-vm> References: <20190624155601.134582.32938.stgit@awfm-01.aw.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190624155601.134582.32938.stgit@awfm-01.aw.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Jun 24, 2019 at 11:56:02AM -0400, Mike Marciniszyn wrote: >commit cf131a81967583ae737df6383a0893b9fee75b4e upstream. > >Heavy contention of the sde flushlist_lock can cause hard lockups at >extreme scale when the flushing logic is under stress. > >Mitigate by replacing the item at a time copy to the local list with >an O(1) list_splice_init() and using the high priority work queue to >do the flushes. > >Ported to linux-4.9.y. I've queued this one for 4.9 and 4.4, thank you. -- Thanks, Sasha