diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index db1ad26e02a759b7e2f669c1faebcf11f7d5c428..50fe28b988c1d27167c112d72195e11f28a78b12 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -593,9 +593,9 @@ static void ocfs2_dio_end_io(struct kiocb *iocb, level = ocfs2_iocb_rw_locked_level(iocb); ocfs2_rw_unlock(inode, level); + inode_dio_done(inode); if (is_async) aio_complete(iocb, ret, 0); - inode_dio_done(inode); } /*