A deadlock vulnerability in the Linux kernel's btrfs filesystem zoned code was resolved by changing do_zone_finish() to avoid waiting for ordered extents. The previous behavior could cause a deadlock when do_zone_finish() waited for writeback while holding a mutex that could be needed by other tasks also waiting for writeback. The fix removes the wait in do_zone_finish(), relying on callers to handle waiting appropriately, and returns -EAGAIN on races, which callers handle safely.