Skip to content

More n_tty fixes

Peter Hurley lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v16 patches 5 repliesSuperseded

Changes from v2 from the cover letter

added patch 7 from Johannes Stezenbach which fixes the TTY_DO_WRITE_WAKEUP logic to prevent missed SIGIO and reduce excessive SIGIO

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7n_tty: Always wake up read()/poll() if new inputdrivers/tty/n_tty.c+2 -320 replies
2/7tty, n_tty: Remove fasync() ldisc notificationdrivers/tty/n_tty.c drivers/tty/tty_io.c include/linux/tty_ldisc.h+0 -190 replies
3/7tty: Add fasync() hung up file operationdrivers/tty/tty_io.c+6 -00 replies
4/7tty: Fix ioctl(FIOASYNC) on hungup filedrivers/tty/tty_io.c+3 -20 replies
5/7n_tty: Fix stuck write wakeupdrivers/tty/n_tty.c+2 -20 replies
6/7n_tty: Remove tty count checks from unthrottledrivers/tty/n_tty.c+0 -40 replies
7/7tty: n_tty: fix SIGIO for outputdrivers/tty/n_tty.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] More n_tty fixes

Changes from v2:
added patch 7 from Johannes Stezenbach which fixes the TTY_DO_WRITE_WAKEUP logic to prevent missed SIGIO and reduce excessive SIGIO

original message follows:

Hi Greg,

This series collects up several fixes for N_TTY.

The first patch fixes read() when VMIN > 0 & VTIME = 0 (so called "record mode"). By ripping out a marginal optimization, the overall code is greatly simplified and "record mode" read()s won't hang :)

Patch 2 removes the pointless fasync() notification to line disciplines. Patches 3,4 & 5 fix hangup races with enabling/disabling signal-driven i/o. Patch 6 is a minor cleanup for a condition test that can never be true.

Peter Hurley (7):
n_tty: Always wake up read()/poll() if new input tty, n_tty: Remove fasync() ldisc notification
tty: Add fasync() hung up file operation
tty: Fix ioctl(FIOASYNC) on hungup file
n_tty: Fix stuck write wakeup
n_tty: Remove tty count checks from unthrottle
tty: n_tty: fix SIGIO for output

 drivers/tty/n_tty.c       | 49 +++++------------------------------------------
 drivers/tty/tty_io.c      | 19 +++++++++---------
 include/linux/tty_ldisc.h |  6 ------
 3 files changed, 14 insertions(+), 60 deletions(-)
Signature · 1 line
2.7.0