public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/madvise06: Exclude other factor that leading to failure
@ 2016-08-02 21:23 Xiao Yang
  2016-08-05 12:10 ` Jan Stancek
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Yang @ 2016-08-02 21:23 UTC (permalink / raw)
  To: ltp

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.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/madvise/madvise06.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/madvise/madvise06.c b/testcases/kernel/syscalls/madvise/madvise06.c
index ddd1814..e040b6f 100644
--- a/testcases/kernel/syscalls/madvise/madvise06.c
+++ b/testcases/kernel/syscalls/madvise/madvise06.c
@@ -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,
 };
-- 
1.8.3.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH] syscalls/madvise06: Exclude other factor that leading to failure
  2016-08-02 21:23 [LTP] [PATCH] syscalls/madvise06: Exclude other factor that leading to failure Xiao Yang
@ 2016-08-05 12:10 ` Jan Stancek
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2016-08-05 12:10 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> From: "Xiao Yang" <yangx.jy@cn.fujitsu.com>
> To: ltp@lists.linux.it
> Cc: jstancek@redhat.com, "Xiao Yang" <yangx.jy@cn.fujitsu.com>
> Sent: Tuesday, 2 August, 2016 11:23:22 PM
> Subject: [PATCH] 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.
> 
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>

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

Regards,
Jan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-05 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 21:23 [LTP] [PATCH] syscalls/madvise06: Exclude other factor that leading to failure Xiao Yang
2016-08-05 12:10 ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox