aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 07:32:21 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-07 19:57:22 -0700
commit5022cf90d4bb8bed51c8176ce57ac7ccf87ed3d4 (patch)
tree73aae2e11f84d958e776e5c7141bfa8e34905be4 /drivers/video
parent70f4184b8eeb04a2b8ad2778a76ffac3a0d4e4d2 (diff)
downloadkernel_samsung_smdk4412-5022cf90d4bb8bed51c8176ce57ac7ccf87ed3d4.zip
kernel_samsung_smdk4412-5022cf90d4bb8bed51c8176ce57ac7ccf87ed3d4.tar.gz
kernel_samsung_smdk4412-5022cf90d4bb8bed51c8176ce57ac7ccf87ed3d4.tar.bz2
tty: fix up atime/mtime mess, take three
commit b0b885657b6c8ef63a46bc9299b2a7715d19acde upstream. We first tried to avoid updating atime/mtime entirely (commit b0de59b5733d: "TTY: do not update atime/mtime on read/write"), and then limited it to only update it occasionally (commit 37b7f3c76595: "TTY: fix atime/mtime regression"), but it turns out that this was both insufficient and overkill. It was insufficient because we let people attach to the shared ptmx node to see activity without even reading atime/mtime, and it was overkill because the "only once a minute" means that you can't really tell an idle person from an active one with 'w'. So this tries to fix the problem properly. It marks the shared ptmx node as un-notifiable, and it lowers the "only once a minute" to a few seconds instead - still long enough that you can't time individual keystrokes, but short enough that you can tell whether somebody is active or not. Reported-by: Simon Kirby <sim@hostway.ca> Acked-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions