fault-injection: make stacktrace filter works as expected
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 17 Aug 2022 08:03:32 +0000 (08:03 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2022 00:40:44 +0000 (16:40 -0800)
commitf9eeef5918bbe1f2545d36280330dced25d6cf97
treeb369449d3d0d1477109c2251d8679315f9bf297b
parent0199907474d402809319ada802b50643625914f9
fault-injection: make stacktrace filter works as expected

stacktrace filter is checked after others, such as fail-nth, interval and
probability.  This make it doesn't work well as expected.

Fix to running stacktrace filter before other filters.  It will speed up
fault inject testing for driver modules.

Link: https://lkml.kernel.org/r/20220817080332.1052710-5-weiyongjun1@huawei.com
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Isabella Basso <isabbasso@riseup.net>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/fault-inject.c