]> www.infradead.org Git - users/hch/block.git/commit
um: fix time-travel syscall scheduling hack
authorJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 14:05:01 +0000 (16:05 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 12 Sep 2024 18:46:23 +0000 (20:46 +0200)
commit381d2f95c8aa575d5d42bf1fe0ea9a70c4bec0cf
tree05ed7405b71a53f33160a446d2b416f39dd1a2f3
parentae0dc67c2512e09fee26226e1b2d78b82ebebf66
um: fix time-travel syscall scheduling hack

The schedule() call there really never did anything at
least since the introduction of the EEVDF scheduler,
but now I found a case where we permanently hang in a
loop of -ERESTARTNOINTR (due to locking.) Work around
it by making any syscalls with error return take time
(and then schedule after) so we cannot hang in such a
loop forever.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/skas/syscall.c