[lkml]   [2003]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: any chance of 2.6.0-test*?

    On Sun, 12 Jan 2003, Greg KH wrote:
    > But this is really the first it's been mentioned, I can't see holding up
    > 2.6 for this. It's a 2.7 job at the earliest, unless someone wants to
    > step up and do it right now...

    Hmm.. The tty layer still depends on the kernel lock, and we're clearly
    not changing that at this point any more.

    I don't see what the fundamental problem is, it sounds like there's just
    some part that got the lock yanked, probably as part of the normal VFS
    kernel-lock-avoidance patches. Looking at tty_io.c (which pretty much
    drives everything else), it does seem to take the lock _most_ of the time,
    including read and write time.

    The only place that looked like it _really_ didn't get the kernel lock was
    apparently tty_open(), which is admittedly a fairly important part of it ;)

    Alan, do you have a test-load? Might be worth just renaming "tty_open()"
    to "do_tty_open()", and then do a

    retval = do_tty_open(..);
    return retval;


    Quite frankly, very little has changed in the 2.5.x tty layer (serial
    stuff, yes, tty no), so its locking should work basically as well as 2.4.x
    does. Except for infrastructure changes like the VFS lock removal (where
    2.4.x will hold the kernel lock itself over open, 2.5.x won't).

    Yeah, preemption has this tendency to show locking problems more easily,
    and it could clearly be the case that it's broken in 2.4.x too but
    basically impossible to trigger. But the _simple_ explanation is that
    tty_open() (and perhaps some other cases like ioctl) just missed the
    kernel lock.


    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-03-22 13:32    [W:4.454 / U:0.512 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site