From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] mISDN: Fix wrong usage of flush_work_sync while holding locks Date: Thu, 13 Sep 2012 15:06:59 -0400 (EDT) Message-ID: <20120913.150659.17331564270446673.davem@davemloft.net> References: <1347546980-15923-1-git-send-email-keil@b1-systems.de> <20120913.145937.235693485700301637.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, stable@kernel.org To: keil@b1-systems.de Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:48408 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142Ab2IMTHB (ORCPT ); Thu, 13 Sep 2012 15:07:01 -0400 In-Reply-To: <20120913.145937.235693485700301637.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: From: David Miller Date: Thu, 13 Sep 2012 14:59:37 -0400 (EDT) > From: Karsten Keil > Date: Thu, 13 Sep 2012 16:36:20 +0200 > >> It is a bad idea to hold a spinlock and call flush_work_sync. >> Move the workqueue cleanup outside the spinlock and use cancel_work_sync, >> on closing the channel this seems to be the more correct function. >> Remove the never used and constant return value of mISDN_freebchannel. >> >> Signed-off-by: Karsten Keil >> Cc: > > Applied, thanks. BTW, about -stable: 1) Even if it were appropriate to submit this directly to -stable, stable@kernel.org is not the correct email address and you must have seen the bounce produced by trying to send email there. Rather, stable@vger.kernel.org is the correct address. 2) I queue up and submit networking bug fixes for -stable myself so you should not submit them directly but rather make a request that I add your patch to my networking -stable queue. Thanks.