Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93f654d authored by Jens Axboe's avatar Jens Axboe Committed by Jaegeuk Kim
Browse files

f2fs: remove request_list check in is_idle()



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.

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: linux-f2fs-devel@lists.sourceforge.net
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 730746ce
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1394,13 +1394,6 @@ static inline unsigned int f2fs_time_to_wait(struct f2fs_sb_info *sbi,

static inline bool is_idle(struct f2fs_sb_info *sbi, int type)
{
	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, type);
}