On Oct 1, 2007, at 1:39 PM, Peter Zijlstra wrote:I'm worried that the aio+dio implementation of concurrent pending IOs just doesn't map well to PI. Would a hack with a mutex and counts help at all? It seems like it would still have the same problem. The count increments don't transfer ownership to the count decrements and the wake up. io submission from tasks: down(&inode->i_mutex); atomic_inc(&inode->in_flight); up(&inode->i_mutex); io completion from interrupts: if(atomic_dec_and_test(&inode->in_flight)) wake_up(&inode->waiting); file allocation in tasks: down(&inode->i_mutex); wait_event(inode->waiting, atomic_read(&inode->in_flight) == 0); up(&inode->i_mutex); (yeah, yeah, starvation -- it's just a demonstration) In any case, this seems like it's not a very high priority now that RT has Steven's work-around. If it does become a priority can you guys let linux-fsdevel know? - z -
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Borislav Petkov | 2.6.23-rc1: no setup signature found... |
git: | |
| 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(). |
| David Miller | Re: [BUG] New Kernel Bugs |
