DSPBRIDGE: Fix to avoid possible recursive locking
PATCH v2 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]>
Signed-off-by Deepak Chitriki <[email protected]>
---
Ref:
v0:http://marc.info/?l=linux-omap&m=126584779011493&w=2 v1:http://marc.info/?l=linux-omap&m=126586224627725&w=2 v2:Comment fixes from v1
drivers/dsp/bridge/wmd/msg_sm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/dsp/bridge/wmd/msg_sm.c +2 -2
@@ -295,7 +295,7 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, (struct list_head *)pMsgFrame);if (LST_IsEmpty (hMsgQueue->msgUsedList))SYNC_ResetEvent (hMsgQueue->hSyncEvent); -else +else SYNC_SetEvent (hMsgQueue->hSyncEvent); fGotMsg = true;
@@ -344,7 +344,7 @@ 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)) +if (!LST_IsEmpty (hMsgQueue->msgUsedList))SYNC_SetEvent (hMsgQueue->hSyncEvent);/* Exit critical section */
Signature · 1 line
1.6.3.3
Hi Deepak,
Quoted 32 lines · ext Deepak Chitriki
Removed
NTFY_Notify()inWMD_MSG_Get()to avoid locking contention asNTFY_Notify()is already invoked inInputMsg().Cc Ameya Palande <[email protected]>Cc Omar Ramirez Luna <[email protected]>Cc Nishanth Menon <[email protected]>Signed-off-by Deepak Chitriki <[email protected]>---
Ref:
v0:http://marc.info/?l=linux-omap&m=126584779011493&w=2 v1:http://marc.info/?l=linux-omap&m=126586224627725&w=2 v2:Comment fixes from v1drivers/dsp/bridge/wmd/msg_sm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/dsp/bridge/wmd/msg_sm.c +1
-1@@ -295,7 +295,7 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, (struct list_head *)pMsgFrame);if (LST_IsEmpty (hMsgQueue->msgUsedList))SYNC_ResetEvent (hMsgQueue->hSyncEvent); -else +else SYNC_SetEvent (hMsgQueue->hSyncEvent); fGotMsg = true;
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 +1
-1@@ -344,7 +344,7 @@ 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)) +if (!LST_IsEmpty (hMsgQueue->msgUsedList))SYNC_SetEvent (hMsgQueue->hSyncEvent);/* Exit critical section */
Is this the correct change?
Cheers,
Ameya.