Make /dev/zero reads interruptible by signals
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2009 03:40:25 +0000 (20:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2009 03:40:25 +0000 (20:40 -0700)
commit2b83868723d090078ac0e2120e06a1cc94dbaef0
tree3cc99c519f8338a92d46ad290d1415f8bb01c9b2
parent07a2039b8eb0af4ff464efd3dfd95de5c02648c6
Make /dev/zero reads interruptible by signals

This helps with bad latencies for large reads from /dev/zero, but might
conceivably break some application that "knows" that a read of /dev/zero
cannot return early.  So do this early in the merge window to give us
maximal test coverage, even if the patch is totally trivial.

Obviously, no well-behaved application should ever depend on the read
being uninterruptible, but hey, bugs happen.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c