linux/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 [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
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 [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
tlb.c [PATCH] uml: skas0 stubs now check system call return values 2005-09-05 00:06:24 -07:00
uaccess.c [PATCH] uml: make copy_*_user atomic 2006-07-01 09:56:03 -07:00