Store v1: Fix writes over a deletion hanging with immediate_commit=all #165

Merged
vitalif merged 1 commits from koolkhel/vitastor:blockstore-v1-wait-big-after-delete into master 2026-11-24 03:49:04 +03:00

1 Commits

Author SHA1 Message Date
2282c35285 Store v1: Fix writes over a deletion hanging with immediate_commit=all
Writes over a deletion wait until it is flushed. erase_dirty() then puts
the first of them in flight and every later one, big writes included,
into WAIT_BIG. With immediate_commit=all only the ack of the previous big
write lets them go, and since e9570efe that loop stops before the next
big write, so a second big write queued over a deletion and everything
after it hung forever.

Unblock the next big write too and stop after it, as ack_sync() does.
2026-11-23 16:47:09 +03:00