]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbacf2bef896f7f644d00f7e63c49f2d4e2cad4db
tree7a946060ffab144a79a884e1abceb51e84795180
parentdeb355eb007dd57cf021c8b4f52c96c6fe9e0a9d
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