btrfs: make sure device is synced before return
authorAnand Jain <anand.jain@oracle.com>
Thu, 23 Jun 2016 12:54:07 +0000 (20:54 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:52:25 +0000 (13:52 +0200)
commite2bf6e89b4c71ea08223f13a700cfd0b576f7e7a
tree7a946060ffab144a79a884e1abceb51e84795180
parentf448341af9cf50b9f405f5192f184d398e1812e0
btrfs: make sure device is synced before return

An inconsistent behavior due to stale reads from the
disk was reported

  mail-archive.com/linux-btrfs@vger.kernel.org/msg54188.html

This patch will make sure devices are synced before
return in the unmount thread.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c