btrfs-progs: skip mounted fs when deal with umounted ones for fi show
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 30 Oct 2014 02:44:50 +0000 (10:44 +0800)
committerDavid Sterba <dsterba@suse.cz>
Mon, 3 Nov 2014 17:35:31 +0000 (18:35 +0100)
commit8a26f850cd63535d38bc554589f126e043979c2b
tree394037146e3bfc4aadcc0f8918571046ad13c420
parentcfdb818ddacce999603081583d5ac163dafdaa33
btrfs-progs: skip mounted fs when deal with umounted ones for fi show

Stalling problems may happen when exec balance & fi show cmds concurrently.

With the following commit:
        commit 915902c500
        btrfs-progs: fix device missing of btrfs fi show with seed devices

The fi show cmd will bother the mounted fs when only umounted fs should
be handled after @btrfs_can_kernel() has finished showing all mounted ones.

We could skip the mounted fs after @btrfs_can_kernel() is done, then tasks
keeps going on mounted fs while fi show continues on umounted ones separately.

Reported-by: Petr Janecek <janecek@ucw.cz>
Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-filesystem.c