On 7/17/07, Rajendra Stalekar <[EMAIL PROTECTED]> wrote:


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrea Gasparini
Sent: Tuesday, July 17, 2007 3:59 PM
To: [email protected]
Subject: Re: Mutex and Sleep

> Rajendra :- Andrea, yes I got that , but what is the purpose in having
> the might_sleep function then?

ah, i catch it. ;)
that's a control over the buggy driver/kernel code that use mutex or other
mechanism in wrong contexts. just this.

Rajendra :- What kind of control mechanism does it provide over the buggy
driver/kernel code ? Wrong context meaning what?

You are not supposed to sleep in interrupt context.Thats most probably a BUG.
So sleeping in interrupt context is wrong.


(and this post is a proof of that... :-P )

bye!
--
-gaspa-
-----------------------------------------------
--------- Powered by Debian GNU/Linux ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ




--
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to