Linux EXT4 FS development
 help / color / mirror / Atom feed
From: libaokun <baokun.li@linux.dev>
To: Xin Yin <yinxin.x@bytedance.com>
Cc: tytso@mit.edu, adilger.kernel@dilger.ca,
	libaokun@linux.alibaba.com, jack@suse.cz, ojaswin@linux.ibm.com,
	ritesh.list@gmail.com, yi.zhang@huawei.com,
	linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: mark extent tree block reads as metadata I/O
Date: Wed, 2 Dec 2026 15:15:25 +0800	[thread overview]
Message-ID: <4b4c56b6-ce9f-47e6-9e64-708283eec59c@linux.dev> (raw)
In-Reply-To: <20261130080420.797601-1-yinxin.x@bytedance.com>

On 2026/11/30 16:04, Xin Yin wrote:
> Extent tree lookups can issue synchronous reads under i_data_sem.
> A writer holding an active journal handle can wait for that lock,
> leaving journal commit waiting on I/O queued by blk-throttle under a
> low read limit.
> 
> Submit extent tree block reads with REQ_META so blk-throttle can dispatch
> the metadata promptly while still charging it to the issuing cgroup.
> 
> Signed-off-by: Xin Yin <yinxin.x@bytedance.com>

Looks good to me.

Reviewed-by: Baokun Li <libaokun@linux.alibaba.com>

> ---
>  fs/ext4/extents.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
> index b65b0261ee5c..ec1ca2b90c7c 100644
> --- a/fs/ext4/extents.c
> +++ b/fs/ext4/extents.c
> @@ -578,7 +578,7 @@ __read_extent_tree_block(const char *function, unsigned int line,
>  
>  	if (!bh_uptodate_or_lock(bh)) {
>  		trace_ext4_ext_load_extent(inode, pblk, _RET_IP_);
> -		err = ext4_read_bh(bh, 0, NULL, false);
> +		err = ext4_read_bh(bh, REQ_META, NULL, false);
>  		if (err < 0)
>  			goto errout;
>  	}
> 
> base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48


      parent reply	other threads:[~2026-12-02  7:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  8:04 [PATCH] ext4: mark extent tree block reads as metadata I/O Xin Yin
2026-11-30  8:10 ` sashiko-bot
2026-11-30 12:23 ` Zhang Yi
2026-11-30 16:23 ` Jan Kara
2026-12-02  7:15 ` libaokun [this message]

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=4b4c56b6-ce9f-47e6-9e64-708283eec59c@linux.dev \
    --to=baokun.li@linux.dev \
    --cc=adilger.kernel@dilger.ca \
    --cc=jack@suse.cz \
    --cc=libaokun@linux.alibaba.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=ojaswin@linux.ibm.com \
    --cc=ritesh.list@gmail.com \
    --cc=tytso@mit.edu \
    --cc=yi.zhang@huawei.com \
    --cc=yinxin.x@bytedance.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