]> git.baikalelectronics.ru Git - kernel.git/commit
fs: move inode_dio_done to the end_io handler
authorChristoph Hellwig <hch@infradead.org>
Fri, 24 Jun 2011 18:29:48 +0000 (14:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:50 +0000 (20:47 -0400)
commitb0dcfe75ab8eaad04f8abceaaf08fccf6c7399d8
tree47b381f3f746cdc1612f432bd902278f8901f84a
parentc54cf9e5c02288b4a8e7e0346ee565a43af3d986
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>
fs/direct-io.c
fs/ext4/inode.c
fs/ocfs2/aops.c
fs/xfs/linux-2.6/xfs_aops.c