Skip to contentSkip to conversation

syscalls/madvise06: Exclude other factor that leading to failure

PATCH New Xiao Yang 2 participants 2 messages Aug 2, 2016 – Aug 5, 2016

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

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
index ddd1814..e040b6f 100644
@@ -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
#1 lore raw

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 which madvise(MADV_WILLNEED) doesn't support swap prefetch. This feature has been pushed since kernel 3.10.0.

Pushed with small changes to commit message, I added commit that introduced this feature for reference.

Regards,
Jan