* [PATCHv1] DSPBRIDGE: Fix to avoid possible recursive locking
@ 2010-02-11 0:29 Deepak Chitriki
2010-02-11 4:23 ` Menon, Nishanth
0 siblings, 1 reply; 2+ messages in thread
From: Deepak Chitriki @ 2010-02-11 0:29 UTC (permalink / raw)
To: linux-omap
Cc: Deepak Chitriki, Ameya Palande, Omar Ramirez Luna, Nishanth Menon
Removed NTFY_Notify() in WMD_MSG_Get() to avoid locking contention
as NTFY_Notify() is already invoked in InputMsg().
Cc: Ameya Palande <ameya.palande@nokia.com>
Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Deepak Chitriki <deepak.chitriki@ti.com>
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(-)
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 */
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCHv1] DSPBRIDGE: Fix to avoid possible recursive locking
2010-02-11 0:29 [PATCHv1] DSPBRIDGE: Fix to avoid possible recursive locking Deepak Chitriki
@ 2010-02-11 4:23 ` Menon, Nishanth
0 siblings, 0 replies; 2+ messages in thread
From: Menon, Nishanth @ 2010-02-11 4:23 UTC (permalink / raw)
To: Chitriki Rudramuni, Deepak, linux-omap; +Cc: Ameya Palande, Ramirez Luna, Omar
> 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 <ameya.palande@nokia.com>
> Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
> Cc: Nishanth Menon <nm@ti.com>
>
> Signed-off-by: Deepak Chitriki <deepak.chitriki@ti.com>
>
> 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).
> ---
> drivers/dsp/bridge/wmd/msg_sm.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> 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);
> }
>
One line code does not need {} - please remove it as well.
> @@ -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.
> /* Exit critical section */
> --
> 1.6.3.3
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-11 4:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-11 0:29 [PATCHv1] DSPBRIDGE: Fix to avoid possible recursive locking Deepak Chitriki
2010-02-11 4:23 ` Menon, Nishanth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).