OSDN Git Service

net/9p: Switch to wait_event_killable()
authorTuomas Tynkkynen <tuomas@tuxera.com>
Wed, 6 Sep 2017 14:59:08 +0000 (17:59 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 24 Oct 2017 03:10:01 +0000 (23:10 -0400)
commit9523feac272ccad2ad8186ba4fcc89103754de52
treeb97fef39565c4e8dd15c564cff166753eb2a19df
parent8ee031631546cf2f7859cc69593bd60bbdd70b46
net/9p: Switch to wait_event_killable()

Because userspace gets Very Unhappy when calls like stat() and execve()
return -EINTR on 9p filesystem mounts. For instance, when bash is
looking in PATH for things to execute and some SIGCHLD interrupts
stat(), bash can throw a spurious 'command not found' since it doesn't
retry the stat().

In practice, hitting the problem is rare and needs a really
slow/bogged down 9p server.

Cc: stable@vger.kernel.org
Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/9p/client.c
net/9p/trans_virtio.c
net/9p/trans_xen.c