Skip to contentSkip to conversation

DSPBRIDGE: Fix to avoid possible recursive locking

PATCH Superseded Deepak Chitriki 2 participants 2 messages Feb 11, 2010

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DSPBRIDGE: Fix to avoid possible recursive locking

Removed NTFY_Notify() in WMD_MSG_Get() to avoid locking contention as NTFY_Notify() is already invoked in InputMsg().

Cc Ameya Palande <[email protected]>
Cc Omar Ramirez Luna <[email protected]>
Cc Nishanth Menon <[email protected]>

Ref:
v0:http://marc.info/?l=linux-omap&m=126584779011493&w=2 v1:Comment fixes from v0

---
 drivers/dsp/bridge/wmd/msg_sm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/dsp/bridge/wmd/msg_sm.c +0 -4
index 3a275f1..7de3705 100644
@@ -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 */
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 13 lines

From: Chitriki Rudramuni, Deepak
Sent: Thursday, February 11, 2010 2:30 AM

Removed NTFY_Notify() in WMD_MSG_Get() to avoid locking contention as NTFY_Notify() is already invoked in InputMsg().

Cc Ameya Palande <[email protected]>
Cc Omar Ramirez Luna <[email protected]>
Cc Nishanth Menon <[email protected]>
Quoted 5 lines

Ref:
v0:http://marc.info/?l=linux-omap&m=126584779011493&w=2 v1:Comment fixes from v0

Please move the Ref into the diff stat section (below --- In the next line).

Quoted 10 lines
---
 drivers/dsp/bridge/wmd/msg_sm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/dsp/bridge/wmd/msg_sm.c +0 -0
index 3a275f1..7de3705 100644

drivers/dsp/bridge/wmd/msg_sm.c DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, · line 301

Quoted 8 lines
drivers/dsp/bridge/wmd/msg_sm.c +0 -2
@@ -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);
 			}
 

One line code does not need {} - please remove it as well.

drivers/dsp/bridge/wmd/msg_sm.c DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, · line 350

Quoted 8 lines
drivers/dsp/bridge/wmd/msg_sm.c +0 -2
@@ -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);
 			}

One line code does not need {} - please remove it as well.

Quoted 3 lines
drivers/dsp/bridge/wmd/msg_sm.c +0 -1
 			/* Exit critical section */
--

1.6.3.3

Regards,
Nishanth Menon