Inflight BAT writes are tied to bios that dm_wait_for_completion() already waited for; message-originated ones complete under ctl_rwsem; only the post-endio tail of ploop_put_piwb() can remain, which does no IO.