On 2026/10/11 19:54, Kyrylo Biryuk wrote: > When dmz_do_reclaim() fails with -ENOSPC because no free zone is > available to copy the data into, dmz_reclaim_work() still ends with > dmz_schedule_reclaim(). If the target is idle, dmz_should_reclaim() > keeps returning true, the work is queued again with no delay and the > worker spins on the same failing pass. > > Re-arm the idle poll instead, so that reclaim is retried after > DMZ_IDLE_PERIOD. The next patch makes -ENOSPC the expected result when > an idle target has random zones but no free sequential zone. > > Tested on a 7.2.6 kernel as an out-of-tree dm-zoned module, together > with the next two patches, on emulated host-managed drives (tcmu-runner > ZBC handler) and on three 27 TB host-managed drives used as md RAID5 > members. > > Assisted-by: LLM > Signed-off-by: Kyrylo Biryuk <[email protected]>
Looks OK but testing should always be done on the latest mainline kernel, or linux-next. This also needs a Fixes tag. With that added, please feel free to add: Reviewed-by: Damien Le Moal <[email protected]> -- Damien Le Moal Western Digital Research

