Skip to content

Remove tty_lock from the console drivers

Alan Cox linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vt: sort out locking for font handlingdrivers/tty/vt/vt.c+13 -100 replies
2/6vt: push down the tty lock so we can see what is left to tackledrivers/tty/vt/vc_screen.c drivers/tty/vt/vt_ioctl.c+55 -362 replies
3/6vt: push down tioclinux casesdrivers/tty/vt/selection.c drivers/tty/vt/vt.c drivers/tty/vt/vt_ioctl.c+18 -80 replies
4/6vt: waitevent is self locked so drop the tty_lockdrivers/tty/vt/vt_ioctl.c+1 -50 replies
5/6vt: tackle the main part of the selection logicdrivers/tty/vt/selection.c drivers/tty/vt/vt.c+33 -80 replies
6/6vt: push the tty_lock down into the map handlingdrivers/tty/vt/consolemap.c drivers/tty/vt/vt_ioctl.c include/linux/vt_kern.h+93 -520 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Remove tty_lock from the console drivers

This needs a fair bit of testing and a bit of review wouldn't go amiss, but it does drive the tty_lock() mess out of the console and correct chunks of console locking in the process.

---

Alan Cox (6):
vt: push the tty_lock down into the map handling
vt: tackle the main part of the selection logic
vt: waitevent is self locked so drop the tty_lock
vt: push down tioclinux cases
vt: push down the tty lock so we can see what is left to tackle
vt: sort out locking for font handling

 drivers/tty/vt/consolemap.c |  119 ++++++++++++++++++++++++++++++++-----------
 drivers/tty/vt/selection.c  |   49 +++++++++++++-----
 drivers/tty/vt/vc_screen.c  |    4 +
 drivers/tty/vt/vt.c         |   37 ++++++++++---
 drivers/tty/vt/vt_ioctl.c   |   68 ++++++++++++-------------
 include/linux/vt_kern.h     |    1 
 6 files changed, 186 insertions(+), 92 deletions(-)
Signature · 2 lines
	"It's 106 miles to Chicago, we've got a full tank of gas, the
	 sat-nav has crashed, it's dark and we're completely lost"