From 438f1ff7b550011322a8ab904a7c479f6389c807 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 27 Oct 2010 21:30:07 -0400 Subject: [PATCH] --- yaml --- r: 218872 b: refs/heads/master c: c999af2b347a55174f702702e0df814d05ef5491 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/inode.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 05e651996fc1..4b83990ac71e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3e1e5f501632460184a98237d5460c521510535e +refs/heads/master: c999af2b347a55174f702702e0df814d05ef5491 diff --git a/trunk/fs/ext4/inode.c b/trunk/fs/ext4/inode.c index 1e824a3ec538..670ab15e4f9a 100644 --- a/trunk/fs/ext4/inode.c +++ b/trunk/fs/ext4/inode.c @@ -3850,14 +3850,14 @@ static void ext4_end_io_dio(struct kiocb *iocb, loff_t offset, } wq = EXT4_SB(io_end->inode->i_sb)->dio_unwritten_wq; - /* queue the work to convert unwritten extents to written */ - queue_work(wq, &io_end->work); - /* Add the io_end to per-inode completed aio dio list*/ ei = EXT4_I(io_end->inode); spin_lock_irqsave(&ei->i_completed_io_lock, flags); list_add_tail(&io_end->list, &ei->i_completed_io_list); spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); + + /* queue the work to convert unwritten extents to written */ + queue_work(wq, &io_end->work); iocb->private = NULL; }