aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2013-06-15 09:14:26 -0400
committerGreg Kroah-Hartman <[email protected]>2013-07-23 16:43:01 -0700
commit6d76bd2618535c581f1673047b8341fd291abc67 (patch)
tree4509766b324cb056a75899db674add20c5efc9ff /tools/perf/scripts/python/net_dropmonitor.py
parenta73d3d6987e4e60d442b7cdf4f7c38400b454bf5 (diff)
n_tty: Make N_TTY ldisc receive path lockless
n_tty has a single-producer/single-consumer input model; use lockless publish instead. Use termios_rwsem to exclude both consumer and producer while changing or resetting buffer indices, eg., when flushing. Also, claim exclusive termios_rwsem to safely retrieve the buffer indices from a thread other than consumer or producer (eg., TIOCINQ ioctl). Note the read_tail is published _after_ clearing the newline indicator in read_flags to avoid racing the producer. Drop read_lock spinlock. Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions