syscalls/madvise09: Workaround failures on newer kernels
PATCH 1/1 syscalls/madvise09: Workaround failures on newer kernels
This is a short term workaround that bumps the number of allocated pages to 128 because which is needed since kernel commit:
1a61ab (mm: memcontrol: replace zone summing with lruvec_page_state())
After a discussion with kernel developers we concluded that in order to avoid depending on kernel internal implementation details we have to allocate a dozen of megabytes instead, but that would require a more complex changes to the test. As we are getting close to a LTP release we decided to put this workaround in first, then we can rewrite the test after the release.
Signed-off-by Cyril Hrubis <[email protected]>
Signed-off-by Shuang Qiu <[email protected]>
Acked-by Li Wang <[email protected]>
--- testcases/kernel/syscalls/madvise/madvise09.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/madvise/madvise09.c +1 -1
@@ -57,7 +57,7 @@ static int sleep_between_faults;static int swap_accounting_enabled; -#define PAGES 32 +#define PAGES 128#define TOUCHED_PAGE1 0#define TOUCHED_PAGE2 10
Signature · 1 line
2.21.0