[f2fs-dev] [PATCH v2] f2fs: zone: don't block IO if there is remained open zone

2024-03-28 Thread Chao Yu
max open zone may be larger than log header number of f2fs, for such case, it doesn't need to wait last IO in previous zone, let's introduce available_open_zone semaphore, and reduce it once we submit first write IO in a zone, and increase it after completion of last IO in the zone. Cc: Daeho

[f2fs-dev] [PATCH] f2fs: zone: don't block IO if there is remained open zone

2024-03-28 Thread Chao Yu
max open zone may be larger than log header number of f2fs, for such case, it doesn't need to wait last IO in previous zone, let's introduce available_open_zone semaphore, and reduce it once we submit first write IO in a zone, and increase it after completion of last IO in the zone. Cc: Daeho

[f2fs-dev] [PATCH v6] f2fs: fix zoned block device information initialization

2024-03-28 Thread Chao Yu
From: Wenjie Qi If the max open zones of zoned devices are less than the active logs of F2FS, the device may error due to insufficient zone resources when multiple active logs are being written at the same time. Signed-off-by: Wenjie Qi Signed-off-by: Chao Yu --- v6: - add check condition to