Skip to content

on do_page_fault() and *copy*_inatomic

Peter Zijlstra linux-arch linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: arch do_page_fault() vs in_atomic()arch/alpha/mm/fault.c arch/arm/mm/fault.c arch/arm26/mm/fault.c +5 more+8 -80 replies
2/3mm: pagefault_{disable,enable}()arch/frv/kernel/futex.c arch/i386/mm/highmem.c arch/mips/mm/highmem.c +14 more+87 -610 replies
3/3mm: k{,um}map_atomic() vs in_atomic()include/asm-mips/highmem.h include/linux/highmem.h+13 -50 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchNick Piggin
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] on do_page_fault() and *copy*_inatomic

In light of the recent work on fault handlers and generic_file_buffered_write() I've gone over some of the arch specific stuff that supports this work.

The following three patches are ready for inclusion IMHO, please apply.

The first patch fixes up some arch fault handlers to respect the 'take no locks in atomic context' rule; this also fixes CONFIG_PREEMPT bugs on those platforms.

The second patch introduces pagefault_{disable,enable}() - an abtraction that replaces the now open coded {inc,dec}_preempt_count() calls when we mean to create atomic pagefault scope. The added barrier() calls in the new primitives might fix some CONFIG_PREEMPT bugs.

The third patch make k{,un}map_atomic denote an atomic pagefault scope. All non-trivial implementation already do this, and this allows us to rely on that in generic. This might also fix some bugs where people already assumed this.

Peter

--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>