Messages in this thread | | | Date | Wed, 18 Jun 2008 15:48:23 -0400 | From | Christoph Hellwig <> | Subject | Re: [patch] aio: invalidate async directio writes |
| |
On Wed, Jun 18, 2008 at 03:45:28PM -0400, Jeff Moyer wrote: > > Can we please move all these aio_complete calls to user context? Having > > AIO contexts completing from irq context is a major pain for complex > > filesystems like XFS. > > Can you help me understand why this is a pain? I'm having trouble > making the connection.
With your patch we complete aio dio write request in user context, which is great for filesystems that need to do more complex activity in the completion handler, e.g. XFS for the unwritten extent conversion. But only doing this for the write case is only very partially useful, we should be doing this for the read case, too.
See fs/xfs/linux-2.6/xfs_aops.c:xfs_end_io_direct() for what I mean.
| |