[lkml]   [2005]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Arjan van de Ven wrote:

    >On Thu, 2005-04-14 at 09:42 +0900, tsuchiya yoshihiro wrote:
    >>In Fedora Core3, interruptible_sleep_on() checks if the system is
    >>by SLEEP_ON_BKLCHECK. Same thing is done in RedHatEL4.
    >>Also I found a patch including SLEEP_ON_BKLCHECK was posted before,
    >>but is not included in 2.6.11.
    >>Why SLEEP_ON_BKLCHECK checks lock_kernel ?
    >Because you really need to hold the BKL when you call sleep_on() family
    >of APIs, otherwise you have a very big race.
    >Also note that you in your code really should not call any of the
    >sleep_on() family of functions at all! It is a very very deprecated and
    >defective API!!!!
    Oh, I did not know that.
    What do you use instead? I found wait_event. Is that what you use?

    Actually, I am porting my friend's code that runs on 2.4.X to 2.6.
    How is sleep_on in 2.4? You should not use sleep_on in 2.4 also?

    Thank you,
    Yoshi Tsuchiya

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-04-14 09:21    [W:0.022 / U:78.016 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site