writeback: ensure that WB_SYNC_NONE writeback with sb pinned is sync
authorJens Axboe <jens.axboe@oracle.com>
Tue, 18 May 2010 12:29:29 +0000 (14:29 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:00:25 +0000 (20:00 +0200)
commit7c8a3554c683f512dbcee26faedb42e4c05f12fa
treeece0d1b79ccc1f596b0ccd0217b584c27a3ff414
parent2db4e42eaceabec42f738f3895300632cd375e67
writeback: ensure that WB_SYNC_NONE writeback with sb pinned is sync

Even if the writeout itself isn't a data integrity operation, we need
to ensure that the caller doesn't drop the sb umount sem before we
have actually done the writeback.

This is a fixup for commit e913fc82.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c