]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: start writeback without blocking
authorSage Weil <sage@newdream.net>
Wed, 28 Jan 2009 23:52:58 +0000 (15:52 -0800)
committerSage Weil <sage@newdream.net>
Thu, 29 Jan 2009 00:10:12 +0000 (16:10 -0800)
We just want to make sure writeback starts; we don't need/want
to wait for it to complete in the writeback thread.

src/kernel/inode.c

index c5d18f42a1854ab3befe4445f7afbde1f6cdb485..95cbce0f240bbca9cfeea966ec891a225ede0dbc 100644 (file)
@@ -1286,7 +1286,7 @@ void ceph_inode_writeback(struct work_struct *work)
        struct inode *inode = &ci->vfs_inode;
 
        dout(10, "writeback %p\n", inode);
-       filemap_write_and_wait(&inode->i_data);
+       filemap_fdatawrite(&inode->i_data);
        iput(inode);
 }