Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:43048 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965463AbeAMJy7 (ORCPT ); Sat, 13 Jan 2018 04:54:59 -0500 From: Kalle Valo To: Brian Norris Cc: Xinming Hu , Linux Wireless , Dmitry Torokhov , "rajatja\@google.com" , Zhiyuan Yang , Tim Song , Cathy Luo , James Cao , Ganapathi Bhat , Ellie Reeves , Christoph Hellwig Subject: Re: [PATCH] mwifiex: cancel pcie/sdio work in remove/shutdown handler References: <1515587433253.94629@marvell.com> <20180112022509.GB243980@google.com> <20180112190644.GC102880@google.com> Date: Sat, 13 Jan 2018 11:54:53 +0200 In-Reply-To: <20180112190644.GC102880@google.com> (Brian Norris's message of "Fri, 12 Jan 2018 11:06:45 -0800") Message-ID: <87tvvqqe1e.fsf@kamboji.qca.qualcomm.com> (sfid-20180113_105503_899002_2DE23EC3) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Brian Norris writes: > On Thu, Jan 11, 2018 at 06:25:09PM -0800, Brian Norris wrote: >> Anyway, I'll do my own testing and then submit my patch properly. > > OK, so I definitely confirmed: if your patch does anything, it > introduces a new deadlock possibility. Just trigger a Wifi timeout or > reset from within remove(), and you'll see the work event get stuck in > pci_reset_function(), while remove() gets stuck at cancel_work_sync(). > > I also confirmed that my patch resolves this problem. > > I'll send the revert + my patch now. Great, thanks. I didn't had a chance to do the revert yet but I'll now apply your revert instead. -- Kalle Valo