Skip to content

tty: BKL removal

Arnd Bergmann lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest31 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31stallion: prune lock_kernel callsdrivers/char/istallion.c drivers/char/stallion.c+25 -170 replies
2/31istallion: use bit ops for the board flagsdrivers/char/istallion.c include/linux/istallion.h+19 -190 replies
3/31riscom8: kill use of lock_kerneldrivers/char/riscom8.c+8 -60 replies
4/31isicom: kill off the BKLdrivers/char/isicom.c+5 -80 replies
5/31rocket: kill BKLdrivers/char/rocket.c+19 -90 replies
6/31synclink: kill the big kernel lockdrivers/char/synclink.c drivers/char/synclink_gt.c drivers/char/synclinkmp.c+56 -730 replies
7/31cyclades: Kill off BKL usagedrivers/char/cyclades.c+9 -110 replies
8/31epca: Kill the big kernel lockdrivers/char/epca.c+1 -30 replies
9/31specialix; Kill the BKLdrivers/char/specialix.c+5 -60 replies
10/31synclink: reworking locking a bitdrivers/char/synclink_gt.c drivers/char/synclinkmp.c+19 -20 replies
11/31tty: serial - fix various misuses/mishandlings of port->ttydrivers/serial/serial_core.c+60 -490 replies
12/31tty: serial - fix tty back references in termiosdrivers/serial/21285.c drivers/serial/imx.c drivers/serial/ioc3_serial.c +2 more+19 -262 replies
13/31tty: serial - fix tty referencing in set_ldiscdrivers/serial/bfin_5xx.c drivers/serial/serial_core.c include/linux/serial_core.h+4 -70 replies
14/31vc: Locking clean updrivers/char/selection.c drivers/char/vt.c+8 -30 replies
15/31tty: Make vt's have a tty_portdrivers/char/vt.c include/linux/console_struct.h+4 -00 replies
16/31tty: Move the vt_tty field from the vc_data into the standard tty_portdrivers/char/keyboard.c drivers/char/vt.c drivers/char/vt_ioctl.c +1 more+11 -120 replies
17/31serial: Change the wait for carrier lockingdrivers/serial/serial_core.c+35 -90 replies
18/31serial: add port helpersdrivers/serial/serial_core.c+37 -140 replies
19/31serial: trim locking on the helpersdrivers/serial/serial_core.c+1 -40 replies
20/31serial: Use block_til_ready helperdrivers/serial/serial_core.c+1 -860 replies
21/31tty: replace BKL with a new tty_lockdrivers/char/amiserial.c drivers/char/briq_panel.c drivers/char/n_hdlc.c +14 more+161 -1150 replies
22/31tty: never hold BTM while getting tty_mutexdrivers/char/pty.c drivers/char/tty_io.c+17 -190 replies
23/31tty: fix console_sem lock orderdrivers/video/console/vgacon.c+0 -20 replies
24/31cdc-acm: remove dead codedrivers/usb/class/cdc-acm.c+3 -90 replies
25/31tty: introduce wait_event_interruptible_ttydrivers/char/cyclades.c drivers/char/istallion.c drivers/char/n_r3964.c +4 more+56 -100 replies
26/31tty: reorder ldisc lockingdrivers/char/selection.c drivers/char/tty_ldisc.c+27 -60 replies
27/31tty: untangle locking of wait_until_sentdrivers/char/amiserial.c drivers/serial/68360serial.c drivers/serial/crisv10.c +1 more+31 -150 replies
28/31tty: remove tty_lock_nesteddrivers/char/pty.c drivers/char/selection.c drivers/char/tty_io.c +2 more+25 -410 replies
29/31tty: implement BTM as mutex instead of BKLdrivers/char/Makefile drivers/char/tty_mutex.c include/linux/tty.h +1 more+66 -00 replies
30/31tty: release BTM while sleeping in block_til_readydrivers/char/amiserial.c drivers/char/ip2/ip2main.c drivers/char/serial167.c +8 more+25 -10 replies
31/318250: fix set_ldisc operationdrivers/serial/8250.c+2 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/31] tty: BKL removal

Hi Greg,

As promised, here is a resend of the patches from
both Alan and myself, making the BKL optional
in the TTY layer. Please apply to your tty-next
tree.

Arnd

--

Alan Cox (20):
stallion: prune lock_kernel calls
istallion: use bit ops for the board flags
riscom8: kill use of lock_kernel
isicom: kill off the BKL
rocket: kill BKL
synclink: kill the big kernel lock
cyclades: Kill off BKL usage
epca: Kill the big kernel lock
specialix; Kill the BKL
synclink: reworking locking a bit
tty: serial - fix various misuses/mishandlings of port->tty
tty: serial - fix tty back references in termios
tty: serial - fix tty referencing in set_ldisc
vc: Locking clean up
tty: Make vt's have a tty_port
tty: Move the vt_tty field from the vc_data into the standard
tty_port
serial: Change the wait for carrier locking
serial: add port helpers
serial: trim locking on the helpers
serial: Use block_til_ready helper

Arnd Bergmann (11):
tty: replace BKL with a new tty_lock
tty: never hold BTM while getting tty_mutex
tty: fix console_sem lock order
cdc-acm: remove dead code
tty: introduce wait_event_interruptible_tty
tty: reorder ldisc locking
tty: untangle locking of wait_until_sent
tty: remove tty_lock_nested
tty: implement BTM as mutex instead of BKL
tty: release BTM while sleeping in block_til_ready 8250: fix set_ldisc operation

 drivers/char/Makefile          |    1 +
 drivers/char/amiserial.c       |   25 +++-
 drivers/char/briq_panel.c      |    6 +-
 drivers/char/cyclades.c        |   22 ++--
 drivers/char/epca.c            |    4 +-
 drivers/char/ip2/ip2main.c     |    4 +
 drivers/char/isicom.c          |   13 +-
 drivers/char/istallion.c       |   68 ++++++-----
 drivers/char/keyboard.c        |   10 +-
 drivers/char/n_hdlc.c          |   16 +-
 drivers/char/n_r3964.c         |   10 +-
 drivers/char/pty.c             |   26 ++--
 drivers/char/riscom8.c         |   14 +-
 drivers/char/rocket.c          |   28 +++--
 drivers/char/selection.c       |   13 ++-
 drivers/char/serial167.c       |    8 +-
 drivers/char/specialix.c       |   13 +-
 drivers/char/stallion.c        |   20 ++-
 drivers/char/sx.c              |   12 +-
 drivers/char/synclink.c        |   21 ++--
 drivers/char/synclink_gt.c     |   92 +++++++-------
 drivers/char/synclinkmp.c      |   43 +++---
 drivers/char/tty_io.c          |  134 +++++++++++---------
 drivers/char/tty_ldisc.c       |   43 +++++--
 drivers/char/tty_mutex.c       |   47 +++++++
 drivers/char/tty_port.c        |    4 +-
 drivers/char/vc_screen.c       |    4 +-
 drivers/char/vt.c              |   19 ++-
 drivers/char/vt_ioctl.c        |   14 +-
 drivers/serial/21285.c         |   10 +-
 drivers/serial/68328serial.c   |    2 +
 drivers/serial/68360serial.c   |    4 +-
 drivers/serial/8250.c          |    9 +-
 drivers/serial/bfin_5xx.c      |    7 +-
 drivers/serial/crisv10.c       |    8 +-
 drivers/serial/imx.c           |   10 +-
 drivers/serial/ioc3_serial.c   |    9 +-
 drivers/serial/ioc4_serial.c   |    9 +-
 drivers/serial/max3100.c       |    7 +-
 drivers/serial/serial_core.c   |  281 +++++++++++++++++++---------------------
 drivers/usb/class/cdc-acm.c    |   12 +--
 drivers/video/console/vgacon.c |    2 -
 include/linux/console_struct.h |    3 +-
 include/linux/istallion.h      |    2 +-
 include/linux/serial_core.h    |    2 +-
 include/linux/tty.h            |   67 ++++++++++
 lib/Kconfig.debug              |   10 ++
 47 files changed, 679 insertions(+), 509 deletions(-)
 create mode 100644 drivers/char/tty_mutex.c