login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
18
Re: [patch] aio: invalidate async directio writes
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeff Moyer <jmoyer@...>
To: Christoph Hellwig <hch@...>
Cc: <akpm@...>, <zach.brown@...>, <linux-aio@...>, <linux-kernel@...>
Subject:
Re: [patch] aio: invalidate async directio writes
Date: Wednesday, June 18, 2008 - 3:45 pm
Christoph Hellwig <hch@infradead.org> writes:
quoted text
> On Wed, Jun 18, 2008 at 02:09:51PM -0400, Jeff Moyer wrote: >> + /* For async O_DIRECT writes, we need to invalidate the >> + * page cache after the write completes. Kick off a >> + * workqueue to do this and issue the completion in process >> + * context. >> + */ >> + if (dio->rw == READ) { >> + int ret = dio_complete(dio, dio->iocb->ki_pos, 0); >> + aio_complete(dio->iocb, ret, 0); >> + kfree(dio); >> + } else { >> + unsigned long flags; >> + spin_lock_irqsave(&iocb_completion_list_lock, flags); >> + list_add(&dio->done_list, &iocb_completion_list); >> + spin_unlock_irqrestore(&iocb_completion_list_lock, flags); >> + schedule_work(&aio_complete_work); >> + } > > 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. Thanks! Jeff --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch] aio: invalidate async directio writes
, Jeff Moyer
, (Wed Jun 18, 2:09 pm)
Re: [patch] aio: invalidate async directio writes
, Zach Brown
, (Thu Jun 19, 1:23 pm)
Re: [patch] aio: invalidate async directio writes
, Peter Zijlstra
, (Thu Jun 19, 3:51 am)
Re: [patch] aio: invalidate async directio writes
, Zach Brown
, (Thu Jun 19, 1:50 pm)
Re: [patch] aio: invalidate async directio writes
, Jeff Moyer
, (Thu Jun 19, 9:50 am)
Re: [patch] aio: invalidate async directio writes
, Peter Zijlstra
, (Thu Jun 19, 9:58 am)
Re: [patch] aio: invalidate async directio writes
, Jeff Moyer
, (Thu Jun 19, 10:05 am)
Re: [patch] aio: invalidate async directio writes
, Christoph Hellwig
, (Wed Jun 18, 2:22 pm)
Re: [patch] aio: invalidate async directio writes
, Jeff Moyer
, (Wed Jun 18, 3:45 pm)
Re: [patch] aio: invalidate async directio writes
, Christoph Hellwig
, (Wed Jun 18, 3:48 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Heiko Carstens
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Tony Lindgren
[PATCH 37/90] ARM: OMAP: MPUIO wake updates
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Benjamin Herrenschmidt
Re: powerpc allmodconfig
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
923 guests
online.
Online users
billprice73
shante88996
Syndicate