public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Cc: Garrett Cooper <yanegomi@gmail.com>,
	LTP <ltp-list@lists.sourceforge.net>,
	Mike Frysinger <vapier@gentoo.org>
Subject: Re: [LTP] [PATCH] vma01: check kernel version
Date: Mon, 8 Jul 2013 12:57:57 +0200	[thread overview]
Message-ID: <20130708105756.GC23579@rei.Home> (raw)
In-Reply-To: <1372912287-8610-1-git-send-email-gaowanlong@cn.fujitsu.com>

Hi!
> This is just a kernel behaviour change to avoid the possible
> scalability issue, not a real kernel bug. So, check the kernel
> version.
> 
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
>  testcases/kernel/mem/vma/vma01.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/testcases/kernel/mem/vma/vma01.c b/testcases/kernel/mem/vma/vma01.c
> index 7cd22c0..c6cb1f5 100644
> --- a/testcases/kernel/mem/vma/vma01.c
> +++ b/testcases/kernel/mem/vma/vma01.c
> @@ -192,7 +192,13 @@ static void check_status(int status)
>  		tst_resm(TPASS, "two 3*ps VMAs found.");
>  		break;
>  	case 1:
> -		tst_resm(TFAIL, "A single 6*ps VMA found.");
> +		if (tst_kvercmp(3, 0, 0) < 0) {
> +			tst_resm(TCONF, "A single 6*ps VMA found. You may need"
> +					" to back port kernel commit 965f55d "
> +					"to fix this scalability issue.");
> +		} else {
> +			tst_resm(TFAIL, "A single 6*ps VMA found.");
> +		}
>  		break;
>  	default:
>  		tst_brkm(TBROK, cleanup, "unexpected VMA found.");

This one looks fine.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

           reply	other threads:[~2013-07-08 10:56 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1372912287-8610-1-git-send-email-gaowanlong@cn.fujitsu.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130708105756.GC23579@rei.Home \
    --to=chrubis@suse.cz \
    --cc=gaowanlong@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vapier@gentoo.org \
    --cc=yanegomi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox