Skip to content

Kill the BKL in compat ioctl handling

Arnd Bergmann lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arch/um: handle compat_ioctl in tty line driverarch/um/drivers/line.c arch/um/drivers/ssl.c arch/um/drivers/stdio_console.c +1 more+10 -01 reply
2/5s390: move keyboard compat ioctls into tty3270 driverdrivers/s390/char/tty3270.c+19 -00 replies
3/5tty: handle VT specific compat ioctls in vt driverdrivers/char/vt.c drivers/char/vt_ioctl.c include/linux/tty.h+209 -011 replies
4/5compat_ioctl: remove VT specific ioctl handlersfs/compat_ioctl.c+0 -2110 replies
5/5compat_ioctl: do not hold BKL in handlersfs/compat_ioctl.c+0 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchWANG Cong
1/5A-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Kill the BKL in compat ioctl handling

I noticed that compat_sys_ioctl still holds the big kernel lock for all ioctl conversion handlers. It would be easy to push this one level down and only do it where necessary, but I decided to clean it up some more at the same time and move all the VT ioctl handling into the specific drivers.

	Arnd <><

arch/um: handle compat_ioctl in tty line driver
s390: move keyboard compat ioctls into tty3270 driver
tty: handle VT specific compat ioctls in vt driver
compat_ioctl: remove VT specific ioctl handlers
compat_ioctl: do not hold BKL in handlers

 arch/um/drivers/line.c          |    6 +
 arch/um/drivers/ssl.c           |    1 +
 arch/um/drivers/stdio_console.c |    1 +
 arch/um/include/shared/line.h   |    2 +
 drivers/char/vt.c               |    3 +
 drivers/char/vt_ioctl.c         |  203 +++++++++++++++++++++++++++++++++++++
 drivers/s390/char/tty3270.c     |   19 ++++
 fs/compat_ioctl.c               |  213 ---------------------------------------
 include/linux/tty.h             |    3 +
 9 files changed, 238 insertions(+), 213 deletions(-)