]> 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)
commitc964e6e86f61a6bf6d398efa99f925c72031f086
tree7a946060ffab144a79a884e1abceb51e84795180
parentee0d1ebf3e095efa737a128bee6ddc23922f7b63
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