verify/trim: stop issuing trims if we run out
authorVincent Fu <vincentfu@gmail.com>
Mon, 31 Mar 2025 14:01:31 +0000 (10:01 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 7 Apr 2025 14:54:38 +0000 (10:54 -0400)
commit67379ba4a842b8cad6077c33752ff1783235d155
tree3736ab9ef0509d231deb7445f4c468029d0f050d
parent940837453a72c3babfd02fdc042e1e64de59a3c1
verify/trim: stop issuing trims if we run out

If we have drained the list of trim operations but its original contents
were fewer than a full batch we should zero out the running batch count
to make sure that we issue another full set of trim_backlog write
operations before considering trims again. Otherwise we will immediately
trim after each subsequent write operation until we have met the batch
size requirement.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
io_u.c