From: Octavian Purdila <tavi@cs.pub.ro>
To: kernelnewbies@nl.linux.org
Cc: Rick Brown <rick.brown.3@gmail.com>,
"bora.sahin@ttnet.net.tr" <bora.sahin@ttnet.net.tr>,
linux-newbie@vger.kernel.org
Subject: Re: Sleeping after preempt_disable() possible?
Date: Fri, 1 Sep 2006 17:13:45 +0300 [thread overview]
Message-ID: <200609011713.45361.tavi@cs.pub.ro> (raw)
In-Reply-To: <7783925d0609010621j5a2cd857t67336a28782fedb3@mail.gmail.com>
On Friday 01 September 2006 16:21, Rick Brown wrote:
> > > Can I sleep after a call to preempt_disable() ?
> >
> > What are you trying to do? You can sleep from process context. If two
> > different process context can access to shared data, you can use
> > semaphore...
>
> I was curious that after a call to preempt_disable(), can I call a
> function that MAY sleep?
>
No, you are not allowed to sleep with preemption disabled.
tavi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2006-09-01 14:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-01 5:24 Sleeping after preempt_disable() possible? Rick Brown
2006-09-01 12:46 ` bora.sahin
2006-09-01 13:21 ` Rick Brown
2006-09-01 14:13 ` Octavian Purdila [this message]
2006-09-01 23:56 ` Rik van Riel
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=200609011713.45361.tavi@cs.pub.ro \
--to=tavi@cs.pub.ro \
--cc=bora.sahin@ttnet.net.tr \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-newbie@vger.kernel.org \
--cc=rick.brown.3@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.