> Running 'sync' program after the load does not finish and eats 100%CPU > busy-waiting for something in kernel. > > It's easy to reproduce hang with patch for me. I just run liferea and sync > after it. Without patch I haven't managed to hang btrfs up.
And I think it's another btrfs bug. I've managed to reproduce it _without_
your patch and _without_ autodefrag enabled by manually running the
following commands:
$ btrfs fi defrag file-with-20_000-extents
$ sync
I think your patch just shuffles things a bit and forces autodefrag races
to pop-up sooner (which is good! :])
--
Sergei
signature.asc
Description: PGP signature
