]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches
authorDaniel Axtens <dja@axtens.net>
Sat, 27 Feb 2021 01:12:57 +0000 (19:12 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 01:52:15 +0000 (12:52 +1100)
commit5335c62723d5d35b2bddb22c85a576810b1a6ac2
treec3fe05186bb624da9fee8b2e5b6015e2b5daf571
parent129ece3663b6c9d77cd742b40e54faab0af3391e
powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches

Add uaccess blocks and use the 'unsafe' versions of functions doing user
access where possible to reduce the number of times uaccess has to be
opened/closed.

There is no 'unsafe' version of copy_siginfo_to_user, so move it
slightly to allow for a "longer" uaccess block.

Co-developed-by: Christopher M. Riedl <cmr@codefail.de>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Christopher M. Riedl <cmr@codefail.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210227011259.11992-9-cmr@codefail.de
arch/powerpc/kernel/signal_64.c