From patchwork Thu Mar 19 04:25:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gupta, Ramesh" X-Patchwork-Id: 13009 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2J4Q6WK011965 for ; Thu, 19 Mar 2009 04:26:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423AbZCSE0F (ORCPT ); Thu, 19 Mar 2009 00:26:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751799AbZCSE0F (ORCPT ); Thu, 19 Mar 2009 00:26:05 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:40606 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbZCSE0E convert rfc822-to-8bit (ORCPT ); Thu, 19 Mar 2009 00:26:04 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2J4PsCd011461 for ; Wed, 18 Mar 2009 23:26:00 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n2J4PsOS016358; Thu, 19 Mar 2009 09:55:54 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Thu, 19 Mar 2009 09:55:54 +0530 From: "Gupta, Ramesh" To: "linux-omap@vger.kernel.org" CC: "Menon, Nishanth" , "Kanigeri, Hari" , "Varide, Nischal" , "Guzman Lugo, Fernando" Date: Thu, 19 Mar 2009 09:55:06 +0530 Subject: [PATCH 1/1] DSPBRIDGE Fix flush_workque Thread-Topic: [PATCH 1/1] DSPBRIDGE Fix flush_workque Thread-Index: AcmoSq6aHiX9xF0WQg25brwc4hp2ZA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From a8aabc6233329998d0ac62be42ade5a77f03ef2a Mon Sep 17 00:00:00 2001 From: Ramesh Gupta Date: Thu, 19 Mar 2009 09:56:30 +0530 Subject: [PATCH 1/1] DSPBRIDGE Fix flush_workque Observed some crash with flush_workque after multiple load and unload. Replaced flush_workque with destroy_workque Signed-off-by: Varide Nischal Tested-by: Nishanth Menon --- drivers/dsp/bridge/wmd/io_sm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/wmd/io_sm.c b/drivers/dsp/bridge/wmd/io_sm.c index 0eb9893..ea802d0 100644 --- a/drivers/dsp/bridge/wmd/io_sm.c +++ b/drivers/dsp/bridge/wmd/io_sm.c @@ -391,7 +391,7 @@ DSP_STATUS WMD_IO_Destroy(struct IO_MGR *hIOMgr) &hWmdContext))) DBC_Assert(hWmdContext); (void)CHNLSM_DisableInterrupt(hWmdContext); - flush_workqueue(bridge_workqueue); + destroy_workqueue(bridge_workqueue); /* Linux function to uninstall ISR */ free_irq(INT_MAIL_MPU_IRQ, (void *)hIOMgr); (void)DPC_Destroy(hIOMgr->hDPC);