From patchwork Thu Feb 11 00:29:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Chitriki X-Patchwork-Id: 78609 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1B0PVtk017950 for ; Thu, 11 Feb 2010 00:30:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755425Ab0BKAaS (ORCPT ); Wed, 10 Feb 2010 19:30:18 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:39869 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942Ab0BKAaR (ORCPT ); Wed, 10 Feb 2010 19:30:17 -0500 Received: from dlep34.itg.ti.com ([157.170.170.115]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o1B0UDJx023340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Feb 2010 18:30:13 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o1B0UCUe028385; Wed, 10 Feb 2010 18:30:12 -0600 (CST) Received: from soldel-laptop (soldel-laptop.am.dhcp.ti.com [128.247.79.63]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o1B0UCZ10522; Wed, 10 Feb 2010 18:30:12 -0600 (CST) Received: by soldel-laptop (Postfix, from userid 1000) id CF2BC606040; Wed, 10 Feb 2010 18:30:11 -0600 (CST) From: Deepak Chitriki To: linux-omap Cc: Deepak Chitriki , Ameya Palande , Omar Ramirez Luna , Nishanth Menon Subject: [PATCHv1] DSPBRIDGE: Fix to avoid possible recursive locking Date: Wed, 10 Feb 2010 18:29:49 -0600 Message-Id: <1265848189-10697-1-git-send-email-deepak.chitriki@ti.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Feb 2010 00:30:18 +0000 (UTC) diff --git a/drivers/dsp/bridge/wmd/msg_sm.c b/drivers/dsp/bridge/wmd/msg_sm.c index 3a275f1..7de3705 100644 --- a/drivers/dsp/bridge/wmd/msg_sm.c +++ b/drivers/dsp/bridge/wmd/msg_sm.c @@ -296,8 +296,6 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, if (LST_IsEmpty(hMsgQueue->msgUsedList)) SYNC_ResetEvent(hMsgQueue->hSyncEvent); else { - NTFY_Notify(hMsgQueue->hNtfy, - DSP_NODEMESSAGEREADY); SYNC_SetEvent(hMsgQueue->hSyncEvent); } @@ -348,8 +346,6 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, hMsgQueue->refCount--; /* Reset the event if there are still queued messages */ if (!LST_IsEmpty(hMsgQueue->msgUsedList)) { - NTFY_Notify(hMsgQueue->hNtfy, - DSP_NODEMESSAGEREADY); SYNC_SetEvent(hMsgQueue->hSyncEvent); } /* Exit critical section */