diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-06-24 14:29:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:47:50 -0400 |
commit | 72c5052ddc3956d847f21c2b8d55c93664a51b2c (patch) | |
tree | 47b381f3f746cdc1612f432bd902278f8901f84a /fs/ocfs2/aops.c | |
parent | aacfc19c626ebd3daa675652457d71019a1f583f (diff) |
fs: move inode_dio_done to the end_io handler
For filesystems that delay their end_io processing we should keep our
i_dio_count until the the processing is done. Enable this by moving
the inode_dio_done call to the end_io handler if one exist. Note that
the actual move to the workqueue for ext4 and XFS is not done in
this patch yet, but left to the filesystem maintainers. At least
for XFS it's not needed yet either as XFS has an internal equivalent
to i_dio_count.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 524d6167fb63..c1efe939c774 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -577,6 +577,7 @@ static void ocfs2_dio_end_io(struct kiocb *iocb, | |||
577 | 577 | ||
578 | if (is_async) | 578 | if (is_async) |
579 | aio_complete(iocb, ret, 0); | 579 | aio_complete(iocb, ret, 0); |
580 | inode_dio_done(inode); | ||
580 | } | 581 | } |
581 | 582 | ||
582 | /* | 583 | /* |