]> git.baikalelectronics.ru Git - kernel.git/commit
vt: push the tty_lock down into the map handling
authorAlan Cox <alan@linux.intel.com>
Tue, 24 Apr 2012 10:06:06 +0000 (11:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 23:14:14 +0000 (16:14 -0700)
commita1d572ea24fb6ef58164dbab5a281663094e187a
tree1e1ad3fd38f2bd1ac0f375ac18e9471af2861ee2
parent21c30b34b1bd76459cfa33465869c28f3fac022d
vt: push the tty_lock down into the map handling

When we do this it becomes clear the lock we should be holding is the vc
lock, and in fact many of our other helpers are properly invoked this way.

We don't at this point guarantee not to race the keyboard code but the results
of that appear harmless and that was true before we started as well.

We now have no users of tty_lock in the console driver...

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c
drivers/tty/vt/vt_ioctl.c
include/linux/vt_kern.h