From: Bob Peterson <rpeterso@redhat.com>
To: Coly Li <i@coly.li>
Cc: Eric Wheeler <bcache@lists.ewheeler.net>,
Coly Li <colyli@suse.de>,
cluster-devel@redhat.com, swhiteho@redhat.com,
linux-bcache@vger.kernel.org
Subject: Re: [PATCH] [RFC] gfs2: add flag REQ_PRIO for metadata read ahead
Date: Wed, 19 Jul 2017 12:05:33 -0400 (EDT) [thread overview]
Message-ID: <1261389690.32250995.1500480333920.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <6a987624-8bda-874b-0d9b-f604f63e7186@coly.li>
----- Original Message -----
| >> This patch adds REQ_PRIO flag when submitting a metadata readahead bio.
| >> A meta data read ahead bio may come from I/O requests for bitmap,
| >> directoriesmeta or other general metadata request.
| >>
| >
| > Are there any places in gfs2 where REQ_PRIO should be placed on
| > latency-sensitive metadata writes? They would then writeback in bcache
| > after the relevant bcache patch is merged.
|
| Hi Eric,
|
| I just grep REQ_META in fs/gfs2, there are 10 locations use REQ_META.
| Among the 10 locations, REQ_PRIO shows up at 3 locations, another 3
| locations are REQ_READAHEAD and I add REQ_PRIO to them, the rested
| locations are,
|
| 1) log.c:662
| In log_write_header(), used to flush gfs2 log header. The author does
| not add REQ_PRIO on purpose, because I see REQ_FUA is there. And for no
| barrier condition, REQ_PRIO is added with REQ_FUA removed. So it's well
| done here.
|
| 2) meta_io.c:455
| Here gfs2_meta_ra() tries to read first metadata block, cache the
| metadata block in bcache should be helpful.
|
| 3) ops_fstype.c:250
| This is for gfs2_read_sb(), it is only called once by init_sb(), we
| don't need to cache this block by bcache.
|
| 4) quota.c:733
| This is in gfs2_write_buf_to_page() when gfs2 disk quota is updated,
| we can have it in cache device.
|
| So it seems REQ_PRIO might be added at meta_io.c:455, and quota.c:733 to
| provide more hint to bcache.
|
| Thanks for suggestion.
|
| Coly
Hi Coly,
So does this mean you are revising the patch and I should wait for a new one?
Or is this patch good as it is? BTW, you may want to change
the comment from "directoriesmeta" to "directory meta".
Regards,
Bob Peterson
Red Hat File Systems
next prev parent reply other threads:[~2017-07-19 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 3:09 [PATCH] [RFC] gfs2: add flag REQ_PRIO for metadata read ahead Coly Li
2017-07-11 20:10 ` Eric Wheeler
2017-07-12 3:59 ` Coly Li
2017-07-19 16:05 ` Bob Peterson [this message]
2017-07-19 19:03 ` Coly Li
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=1261389690.32250995.1500480333920.JavaMail.zimbra@redhat.com \
--to=rpeterso@redhat.com \
--cc=bcache@lists.ewheeler.net \
--cc=cluster-devel@redhat.com \
--cc=colyli@suse.de \
--cc=i@coly.li \
--cc=linux-bcache@vger.kernel.org \
--cc=swhiteho@redhat.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