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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7976C4332F for ; Tue, 8 Nov 2022 04:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232350AbiKHEYV (ORCPT ); Mon, 7 Nov 2022 23:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbiKHEYS (ORCPT ); Mon, 7 Nov 2022 23:24:18 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153BB24F14 for ; Mon, 7 Nov 2022 20:24:18 -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 B612FB818BE for ; Tue, 8 Nov 2022 04:24:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFD87C433C1; Tue, 8 Nov 2022 04:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667881455; bh=9SlR9nOdg2+TWF3Dk7MWaLTFEIiUjIItmVc3nw/hAEY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jyHmnlh2ZaoX7u63pdiJDmaYsjOH5r3hH0xPQZPtQmKOb7ZgHqhgGcxuP/0gli4F3 DC+JGy5mVVhfQmrCUjOc5tcOeRmpW8oiV5sYCvChAYwrTRJi3pSgcJpD1EIhuMApv0 Ov1HW5IZx4Rf3BQXSaugRUcRfUdjoZ7yX3PAUpRmavJVFLPVrzMw1zNWBXYSWJhAFH 0T1nRWT9UKuJRgXlhrgDlKbh5xfJr1jKKu+MdjnM1OWqRQx69FF96lHcejuyTmGAVS 6oA9JLxbbUUXCi2Xc2v6XGjDqV+t7O8GbqhGOZrTwdFyFWVCGofhFFZ1Ktwr+hSZQP GPM/nwTGDHLNw== Date: Mon, 7 Nov 2022 20:24:13 -0800 From: Jakub Kicinski To: Saeed Mahameed Cc: "David S. Miller" , Paolo Abeni , Eric Dumazet , Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Moshe Shemesh Subject: Re: [V2 net 05/11] net/mlx5: Fix possible deadlock on mlx5e_tx_timeout_work Message-ID: <20221107202413.7de06ad1@kernel.org> In-Reply-To: <20221105071028.578594-6-saeed@kernel.org> References: <20221105071028.578594-1-saeed@kernel.org> <20221105071028.578594-6-saeed@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sat, 5 Nov 2022 00:10:22 -0700 Saeed Mahameed wrote: > + /* Once deactivated, new tx_timeout_work won't be initiated. */ > + if (current_work() != &priv->tx_timeout_work) > + cancel_work_sync(&priv->tx_timeout_work); The work takes rtnl_lock, are there no callers of mlx5e_switch_priv_channels() that are under rtnl_lock()? This patch is definitely going onto my "expecting Fixes" bingo card :S