From: Ameya Palande <ameya.palande@nokia.com>
To: ext Deepak Chitriki <deepak.chitriki@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Omar Ramirez Luna <omar.ramirez@ti.com>,
Nishanth Menon <nm@ti.com>
Subject: Re: [PATCH v2] DSPBRIDGE: Fix to avoid possible recursive locking
Date: Thu, 11 Feb 2010 20:36:18 +0200 [thread overview]
Message-ID: <1265913378.4084.6.camel@sanganak> (raw)
In-Reply-To: <1265909597-4436-1-git-send-email-deepak.chitriki@ti.com>
Hi Deepak,
On Thu, 2010-02-11 at 18:33 +0100, ext Deepak Chitriki wrote:
> 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: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(-)
>
> diff --git a/drivers/dsp/bridge/wmd/msg_sm.c b/drivers/dsp/bridge/wmd/msg_sm.c
> index d778cbc..7414113 100644
> --- a/drivers/dsp/bridge/wmd/msg_sm.c
> +++ b/drivers/dsp/bridge/wmd/msg_sm.c
> @@ -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 */
Is this the correct change?
Cheers,
Ameya.
prev parent reply other threads:[~2010-02-11 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 17:33 [PATCH v2] DSPBRIDGE: Fix to avoid possible recursive locking Deepak Chitriki
2010-02-11 18:36 ` Ameya Palande [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1265913378.4084.6.camel@sanganak \
--to=ameya.palande@nokia.com \
--cc=deepak.chitriki@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=omar.ramirez@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox