Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] fault-injection: defaults likely to please a new user

Assign defaults most likely to please a new user:
1) generate some logging output
(verbose=2)
2) avoid injecting failures likely to lock up UI
(ignore_gfp_wait=1, ignore_gfp_highmem=1)

Signed-off-by: Don Mullis <dwm@meer.net>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Don Mullis and committed by
Linus Torvalds
6b1b60f4 f1729c28

+4
+1
include/linux/fault-inject.h
··· 52 52 .times = ATOMIC_INIT(1), \ 53 53 .require_end = ULONG_MAX, \ 54 54 .stacktrace_depth = 32, \ 55 + .verbose = 2, \ 55 56 } 56 57 57 58 #define DECLARE_FAULT_ATTR(name) struct fault_attr name = FAULT_ATTR_INITIALIZER
+2
mm/page_alloc.c
··· 910 910 911 911 } fail_page_alloc = { 912 912 .attr = FAULT_ATTR_INITIALIZER, 913 + .ignore_gfp_wait = 1, 914 + .ignore_gfp_highmem = 1, 913 915 }; 914 916 915 917 static int __init setup_fail_page_alloc(char *str)
+1
mm/slab.c
··· 3102 3102 3103 3103 } failslab = { 3104 3104 .attr = FAULT_ATTR_INITIALIZER, 3105 + .ignore_gfp_wait = 1, 3105 3106 }; 3106 3107 3107 3108 static int __init setup_failslab(char *str)