android_kernel_xiaomi_sm8350/arch/um/kernel/skas
Paolo 'Blaisorblade' Giarrusso 47e5243afe [PATCH] uml: make copy_*_user atomic
Make __copy_*_user_inatomic really atomic to avoid "Sleeping function called in
atomic context" warnings, especially from futex code.

This is made by adding another kmap_atomic slot and making copy_*_user_skas
use kmap_atomic; also copy_*_user() becomes atomic, but that's true and is not
a problem for i386 (and we can always add might_sleep there as done
elsewhere).  For TT mode kmap is not used, so there's no need for this.

I've had to use another slot since both KM_USER0 and KM_USER1 are used
elsewhere and could cause conflicts.  Till now we reused the kmap_atomic slot
list from the subarch, but that's not needed as that list must contain the
common ones (used by generic code) + the ones used in architecture specific
code (and Uml till now used none); so I've taken the i386 one after comparing
it with ones from other archs, and added KM_UML_USERCOPY.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-01 09:56:03 -07:00
..
clone.c [PATCH] uml skas0: stop gcc's insanity 2005-12-18 11:19:44 -08:00
exec_kern.c
Makefile [PATCH] uml: cleanup unprofile expression and build infrastructure 2006-05-01 18:17:45 -07:00
mem.c [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
mmu.c [PATCH] zoned vm counters: conversion of nr_pagetables to per zone counter 2006-06-30 11:25:35 -07:00
process_kern.c [PATCH] uml: add arch_switch_to for newly forked thread 2006-03-31 12:18:52 -08:00
syscall.c
tlb.c
uaccess.c [PATCH] uml: make copy_*_user atomic 2006-07-01 09:56:03 -07:00