summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/abi.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-06-08 19:20:43 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-14 17:15:33 +0200
commit85462323555dda749f1c5373a8d72679464c968d (patch)
treeaeec1f9a2ad6665c70a88483cbe5e9a3a2f33536 /arch/mips/include/asm/abi.h
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6 (diff)
downloadlinux-85462323555dda749f1c5373a8d72679464c968d.tar.xz
linux-85462323555dda749f1c5373a8d72679464c968d.zip
do_generic_file_read: s/EINTR/EIO/ if lock_page_killable() fails
If lock_page_killable() fails because the task was killed by SIGKILL or any other fatal signal, do_generic_file_read() returns -EIO. This seems to be OK, because in fact the userspace won't see this error, the task will dequeue SIGKILL and exit. However, /sbin/init is different, it will dequeue SIGKILL, ignore it, and return to the user-space with the bogus -EIO. Change the code to return the error code from lock_page_killable(), -EINTR. This doesn't fix the bug, but perhaps makes sense anyway. Imho, with this change the code looks a bit more logical, and the "good" init should handle the spurious EINTR or short read. Afaics we can also change lock_page_killable() to return -ERESTARTNOINTR, but this can't prevent the short reads. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/mips/include/asm/abi.h')
0 files changed, 0 insertions, 0 deletions