]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: zone: fix to wait completion of last bio in zone correctly
authorChao Yu <chao@kernel.org>
Mon, 29 Jan 2024 11:27:40 +0000 (19:27 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:00 +0000 (18:20 -0400)
commit10b19ea7146d094d417d516b9000357550079f80
tree740011c95fe2189b8a0590eed01b2ddf9336b07b
parent0386408036bfc8b50296d9e544ff91c4d52af2db
f2fs: zone: fix to wait completion of last bio in zone correctly

[ Upstream commit 536af8211586af09c5bea1c15ad28ddec5f66a97 ]

It needs to check last zone_pending_bio and wait IO completion before
traverse next fio in io->io_list, otherwise, bio in next zone may be
submitted before all IO completion in current zone.

Fixes: e067dc3c6b9c ("f2fs: maintain six open zones for zoned devices")
Cc: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/data.c