• Alan Cox's avatar
    [PATCH] tty locking on resize · ca9bda00
    Alan Cox authored
    The current kernel serializes console resizes but does not serialize the
    resize against the tty structure updates.  This means that while two
    parallel resizes cannot mess up the console you can get incorrect results
    reported.
    
    Secondly while doing this I added vc_lock_resize() to lock and resize the
    console.  This leaves all knowledge of the console_sem in the vt/console
    driver and kicks it out of the tty layer, which is good
    
    Thirdly while doing this I decided I couldn't stand "disallocate" any
    longer so I switched it to "deallocate".
    Signed-off-by: default avatarAlan Cox <alan@redhat.com>
    Cc: Paul Fulghum <paulkf@microgate.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ca9bda00
vt_ioctl.c 28.2 KB