]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nilfs2: wait for discard to finish
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 18 Aug 2010 12:11:11 +0000 (21:11 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 18 Aug 2010 15:11:06 +0000 (00:11 +0900)
commit1cb0c924fa2d616e5e3b5bc62d97191aac9ff442
tree199a9ffc425033d27620e70d8ffd44a9e44ad931
parent3b89f56783a4ef796190ef1192c25e72e0b986b6
nilfs2: wait for discard to finish

nilfs_discard_segment() doesn't wait for completion of discard
requests.  This specifies BLKDEV_IFL_WAIT flag when calling
blkdev_issue_discard() in order to fix the sync failure.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Christoph Hellwig <hch@lst.de>
fs/nilfs2/the_nilfs.c