linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Please disable balance auto-resume for 4.9 (or even 4.8)
@ 2016-08-25  9:38 Holger Hoffstätte
  2016-08-25 11:32 ` Austin S. Hemmelgarn
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Hoffstätte @ 2016-08-25  9:38 UTC (permalink / raw)
  To: linux-btrfs


Automatically resuming an interrupted balance has repeatedly caused all
sorts of problems because it creates a possible failure mode when a user
can least use it: after a crash/power loss/sudden reboot (which, like it
or not, is the de facto "fix random problems" approach for many people).

The idea behind the automnatic resume is good and important for cases
like automation and unattended operation, but nevertheless right now
it creates more problems than it fixes.

As far as I can see it should be easy enough to simply disable calling
btrfs_resume_balance_async() at least on mount (in open_ctree()) and
possibly on remount as well. The skip_balance flag could then simply
be ignored or removed.

I can't say how much work it would be to completely remove the persistent
balance state or whether it is useful to be kept around for resume, but at
least not continuing would stop filesystems from eating themselves further
on mount.

Holger

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-25 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25  9:38 Please disable balance auto-resume for 4.9 (or even 4.8) Holger Hoffstätte
2016-08-25 11:32 ` Austin S. Hemmelgarn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).