From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] readahead02: fix path for read_ahead_kb on raw partitions
Date: Mon, 19 Sep 2016 11:37:55 +0200 [thread overview]
Message-ID: <20160919093755.GA6220@rei.lan> (raw)
In-Reply-To: <dcf8a988ac73c339e05a9f3e326c596065ce5d02.1473860921.git.jstancek@redhat.com>
Hi!
> Path to read_ahead_kb is not consistent for all block devices,
> for example for LVM it's:
> /sys/dev/block/$maj:$min/queue/read_ahead_kb
> but for raw partitions "queue" is only in "parent" device:
> /sys/dev/block/$maj:$min/../queue/read_ahead_kb
>
> This patch checks both types and reads first one it can find.
> Tested on LVM and raw partitions with 4.7.3.
Fixes the problem for me as well (minus the Btrfs anonymous block
devices that has to be fixed).
Acked.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2016-09-19 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 13:50 [LTP] [PATCH] readahead02: fix path for read_ahead_kb on raw partitions Jan Stancek
2016-09-19 9:37 ` Cyril Hrubis [this message]
2016-09-19 12:46 ` Jan Stancek
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=20160919093755.GA6220@rei.lan \
--to=chrubis@suse.cz \
--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