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

Commit 2482c432 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: detect bug_on in f2fs_wait_discard_bios



Add bug_on to detect potential non-empty discard wait list.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent cb15d1e4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1388,6 +1388,8 @@ bool f2fs_wait_discard_bios(struct f2fs_sb_info *sbi)

	/* just to make sure there is no pending discard commands */
	__wait_all_discard_cmd(sbi, NULL);

	f2fs_bug_on(sbi, atomic_read(&dcc->discard_cmd_cnt));
	return dropped;
}