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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:09 +0000 (08:39 +0000)
commit8bd466c755b105d9eede2739b051890bd7018959
tree6dff205b38a8cdfdcfaab4f22cc18ff10e93f90b
parentdc5f76e4e21dcb18fdf47a61eff91806308e49bd
net/9p: Switch to wait_event_killable()

commit 9523feac272ccad2ad8186ba4fcc89103754de52 upstream.

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.

Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/9p/client.c
net/9p/trans_virtio.c