]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: queue work on stack in writeback_inodes_sb
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jun 2010 16:14:43 +0000 (18:14 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 11 Jun 2010 10:58:07 +0000 (12:58 +0200)
commit8a910646458304478ddda50585aa2a3b4220bceb
tree3cfc50c18cc3d2351ddac4309e8f228e22faed71
parentdc1278e3a10991a6943e6e112e37391e89dc4002
writeback: queue work on stack in writeback_inodes_sb

If we want to rely on s_umount in the caller we need to wait for completion
of the I/O submission before returning to the caller.  Refactor
bdi_sync_writeback into a bdi_queue_work_onstack helper and use it for this
case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/fs-writeback.c