From: GAggarwal@IN.Safenet-inc.com
To: rajat.noida.india@gmail.com
Cc: kernelnewbies@nl.linux.org, linux-newbie@vger.kernel.org
Subject: RE: Need for a new spinlock API?
Date: Wed, 4 Apr 2007 11:04:44 +0530 [thread overview]
Message-ID: <D45AC362EAFF2F47891E71637D192ABF01D378FA@INEXCH1> (raw)
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]
Yaa Rajat... I think that will work if datastructure is shared only among
process context thread and one ISR routine.But in case the datastructure is
shared among multiple interrupt context routines say in IRQ handler A and
Tasklet B then you need to use spin_lock_irqsave() routine in IRQ context
too.
--
Gaurav
-----Original Message-----
From: Rajat Jain [mailto:rajat.noida.india@gmail.com]
Sent: Wednesday, April 04, 2007 10:40 AM
To: GAggarwal@in.safenet-inc.com
Cc: kernelnewbies@nl.linux.org; linux-newbie@vger.kernel.org
Subject: Re: Need for a new spinlock API?
On 4/4/07, GAggarwal@in.safenet-inc.com <GAggarwal@in.safenet-inc.com>
wrote:
>
>
> Hi Rajat,
>
> I think spin_lock_irqsave() will fulfill the purpose as otherwise it may
be
> possible that the when a data structure is accessed in process context by
> taking spin_lock and an interrupt comes then the ISR will remain in
forever
> loop waiting for the process context to release the lock result in a
> deadlock situation for a uniprocessor system.
HI Gaurav,
I meant to use spin_lock_irqsave() in process context and spin_lock()
in IRQ context.
Thanks,
Rajat
The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it.
[-- Attachment #2: Type: text/html, Size: 2512 bytes --]
next reply other threads:[~2007-04-04 5:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 5:34 GAggarwal [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-04 3:50 Need for a new spinlock API? GAggarwal
2007-04-04 5:10 ` Rajat Jain
2007-03-21 3:53 Rajat Jain
2007-03-21 7:32 ` Arjan van de Ven
2007-03-21 18:59 ` anubhav rakshit
2007-03-21 21:03 ` Arjan van de Ven
2007-03-21 23:07 ` Tzahi Fadida
2007-03-22 1:12 ` Rajat Jain
2007-03-22 4:17 ` Ajay Singh (ajaysi)
2007-03-22 4:33 ` Rajat Jain
2007-03-22 4:55 ` Ajay Singh (ajaysi)
2007-03-22 5:59 ` Rajat Jain
2007-03-22 8:51 ` Arjan van de Ven
2007-03-22 8:50 ` Arjan van de Ven
2007-04-04 3:26 ` Rajat Jain
2007-04-04 5:38 ` anubhav rakshit
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=D45AC362EAFF2F47891E71637D192ABF01D378FA@INEXCH1 \
--to=gaggarwal@in.safenet-inc.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-newbie@vger.kernel.org \
--cc=rajat.noida.india@gmail.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