Re: Mutex and Sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/17/07, Rajendra Stalekar <rajendra.stalekar@xxxxxxxxx> wrote:


-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Andrea Gasparini
Sent: Tuesday, July 17, 2007 3:59 PM
To: kernelnewbies@xxxxxxxxxxxx
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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




--
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux