From: Chao Yu <chao@kernel.org>
To: Jens Axboe <axboe@kernel.dk>, Jaegeuk Kim <jaegeuk@kernel.org>,
linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH] f2fs: remove request_list check in is_idle()
Date: Wed, 17 Oct 2018 00:06:45 +0800 [thread overview]
Message-ID: <003df7ce-626c-e32b-909b-909b87e0c8f3@kernel.org> (raw)
In-Reply-To: <d89936bb-398e-08c1-573f-b1bd54f3ca35@kernel.dk>
Hi Jens,
On 2018-10-16 22:34, Jens Axboe wrote:
> This doesn't work on stacked devices, and it doesn't work on
> blk-mq devices. The request_list is only used on legacy, which
> we don't have much of anymore, and soon won't have any of.
>
> Kill the check.
In order to avoid conflicting with user IO, GC and Discard thread try to be
aware of IO status of device by is_idle(), if previous implementation doesn't
work, do we have any other existing method to get such status? Or do you have
any suggestion on this?
Thanks,
>
> Cc: Jaegeuk Kim <jaegeuk@kernel.org>
> Cc: linux-f2fs-devel@lists.sourceforge.net
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> ---
> fs/f2fs/f2fs.h | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
> index abf925664d9c..58778992eca4 100644
> --- a/fs/f2fs/f2fs.h
> +++ b/fs/f2fs/f2fs.h
> @@ -1356,13 +1356,6 @@ static inline bool f2fs_time_over(struct f2fs_sb_info *sbi, int type)
>
> static inline bool is_idle(struct f2fs_sb_info *sbi)
> {
> - struct block_device *bdev = sbi->sb->s_bdev;
> - struct request_queue *q = bdev_get_queue(bdev);
> - struct request_list *rl = &q->root_rl;
> -
> - if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC])
> - return false;
> -
> return f2fs_time_over(sbi, REQ_TIME);
> }
>
>
next prev parent reply other threads:[~2018-10-16 16:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-16 14:34 [PATCH] f2fs: remove request_list check in is_idle() Jens Axboe
2018-10-16 16:06 ` Chao Yu [this message]
2018-10-16 16:20 ` Jens Axboe
2018-10-16 19:23 ` Jaegeuk Kim
2018-10-16 19:24 ` Jens Axboe
2018-10-16 19:31 ` Jaegeuk Kim
2018-10-16 19:36 ` Jens Axboe
2018-10-17 1:18 ` Chao Yu
2018-10-17 2:19 ` Jaegeuk Kim
2018-10-17 2:49 ` Chao Yu
2018-10-17 3:06 ` Jaegeuk Kim
2018-10-17 3:11 ` Chao Yu
2018-10-17 1:08 ` Chao Yu
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=003df7ce-626c-e32b-909b-909b87e0c8f3@kernel.org \
--to=chao@kernel.org \
--cc=axboe@kernel.dk \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).