[f2fs-dev] [PATCH] fsck.f2fs: Detect looped node chain more efficiently.

2023-05-03 Thread Chunhai Guo via Linux-f2fs-devel
Now we detect the looped node chain by comparing the loop counter with free blocks. While it may take tens of seconds to quit when the free blocks are large enough. We can use Floyd's cycle detection algorithm to make it more efficient. Below is the log we encounter on a 256GB UFS storage and it t

[f2fs-dev] [PATCH v5] f2fs: add async reset zone command support

2023-05-03 Thread Daejun Park
v4 -> v5 Added f2fs iostat for zone reset command. v3 -> v4 Fixed build error caused by unused function. v2 -> v3 Modified arguments to be correct for ftrace parameter. Changed __submit_zone_reset_cmd to void return. Refactored the f2fs_wait_discard_bio function. Fixed code that was previously in

Re: [f2fs-dev] (2) [PATCH v4] f2fs: add async reset zone command support

2023-05-03 Thread Chao Yu
On 2023/5/4 10:08, Daejun Park wrote: Thank you for reviewing the patch. - Original Message - Sender : Chao Yu  Date : 2023-05-04 10:43 (GMT+9) Title : Re: [PATCH v4] f2fs: add async reset zone command support To : 박대준, jaeg...@kernel.org, rost...@goodmis.org, mhira...@kernel.o

Re: [f2fs-dev] (2) [PATCH v4] f2fs: add async reset zone command support

2023-05-03 Thread Daejun Park
Thank you for reviewing the patch. > - Original Message - > Sender : Chao Yu  > Date : 2023-05-04 10:43 (GMT+9) > Title : Re: [PATCH v4] f2fs: add async reset zone command support > To : 박대준, jaeg...@kernel.org, > rost...@goodmis.org, > mhira...@kernel.org, > linux-f2fs-devel@li

Re: [f2fs-dev] [PATCH v4] f2fs: add async reset zone command support

2023-05-03 Thread Chao Yu
On 2023/5/2 12:16, Daejun Park wrote: Changelog: v3 -> v4 Fixed build error caused by unused function. v2 -> v3 Modified arguments to be correct for ftrace parameter. Changed __submit_zone_reset_cmd to void return. Refactored the f2fs_wait_discard_bio function. Fixed code that was previously in

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_write_single_data_page

2023-05-03 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in f2fs_quota_on general protection fault, probably for non-canonical address 0xdce6: [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0730-