public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Richard Palethorpe <rpalethorpe@suse.de>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v9 1/2] Rewrite aio-stress test using LTP API
Date: Mon, 28 Nov 2022 10:39:22 +0000	[thread overview]
Message-ID: <87y1rvuz1k.fsf@suse.de> (raw)
In-Reply-To: <20221028132455.26586-2-andrea.cervesato@suse.com>

Hello,

Andrea Cervesato via ltp <ltp@lists.linux.it> writes:

> +	int maxaio;
> +	int stages_i;
> +
> +	page_size_mask = tst_dev_block_size(".");

Did you change the meaning of page_size_mask, but did not rename the
variable?

Also what happens if we are running on tmpfs? I don't think there is
blocksize in such a case. The page size is probably the closest thing
there is.

Setting to changes requested because the test fails with TBROK when /tmp
is on tmpfs. Previously this probably worked, but tst_dev_block_size has
been changed since.

Possibly we need a version of tst_dev_block_size which does not break,
but returns zero when it can't get a block size. In this case it is safe
to substitute the page size, but that is not always true. Another is
just to always use page size. Block size can be left for another day.

-- 
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2022-11-28 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-28 13:24 [LTP] [PATCH v9 0/2] Rewrite aio-stress test Andrea Cervesato via ltp
2022-10-28 13:24 ` [LTP] [PATCH v9 1/2] Rewrite aio-stress test using LTP API Andrea Cervesato via ltp
2022-11-28 10:39   ` Richard Palethorpe [this message]
2022-10-28 13:24 ` [LTP] [PATCH v9 2/2] Merge ltp-aio-stress part2 with part1 Andrea Cervesato via ltp

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=87y1rvuz1k.fsf@suse.de \
    --to=rpalethorpe@suse.de \
    --cc=andrea.cervesato@suse.com \
    --cc=ltp@lists.linux.it \
    /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