syscalls/madvise06: Exclude other factor that leading to failure
PATCH 1/1 syscalls/madvise06: Exclude other factor that leading to failure
Make sure that madvise(MADV_WILLNEED) supports swap prefetch. We can't distinguish between kernel bug and unsupported swap, because the same error happens on RHEL6.8GA which madvise(MADV_WILLNEED) doesn't support swap prefetch. This feature has been pushed since kernel 3.10.0.
--- testcases/kernel/syscalls/madvise/madvise06.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/madvise/madvise06.c +1 -0
@@ -182,6 +182,7 @@ static struct tst_test test = { .test_all = test_advice_willneed, .setup = setup, .cleanup = cleanup, + .min_kver = "3.10.0", .needs_tmpdir = 1, .needs_root = 1, };
Signature · 1 line
1.8.3.1
PATCH 1/1 syscalls/madvise06: Exclude other factor that leading to failure
----- Original Message -----
Quoted 6 lines
From: "Xiao Yang" <[email protected]>
To: [email protected]
Cc: [email protected], "Xiao Yang" <[email protected]>
Sent: Tuesday, 2 August, 2016 11:23:22 PM
Subject: [PATCH] syscalls/madvise06: Exclude other factor that leading to failure
Quoted 7 lines
Make sure that
madvise(MADV_WILLNEED)supports swap prefetch. We can't distinguish between kernel bug and unsupported swap, because the same error happens on RHEL6.8GA whichmadvise(MADV_WILLNEED)doesn't support swap prefetch. This feature has been pushed since kernel 3.10.0.Signed-off-by Xiao Yang <[email protected]>
Pushed with small changes to commit message, I added commit that introduced this feature for reference.
Regards,
Jan