]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: properly wait log writers during log sync
authorYan, Zheng <zheng.yan@oracle.com>
Wed, 14 Oct 2009 13:24:59 +0000 (09:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 14 Oct 2009 14:32:48 +0000 (10:32 -0400)
commitf857450a51f08ae7b2392c87e80fcc913a01f0e6
tree884e8cda2535dc43cf57ce9fa273381b827d2f4f
parentd082ab3c3d89003ab2af3315da44abf73849196e
Btrfs: properly wait log writers during log sync

A recently fsync optimization make btrfs_sync_log skip calling
wait_for_writer in the single log writer case. This is incorrect
since the writer count can also be increased by btrfs_pin_log.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/tree-log.c