On Wed, Feb 10, 2016 at 10:25:38AM -0800, Christoph Hellwig wrote: > On Wed, Feb 10, 2016 at 07:47:15PM +1100, Dave Chinner wrote: > > of the writepage context. Patches 7 and 8 are new patches (as in the > > first time I've posted them) to demonstrate how to remove the IO > > completion dependency on recording the bufferehads attached to the > > ioend. This is the first step in removing bufferheads from the > > writepage IO path - these are FYI patches, not patches I want to > > have committed immediately. > > This looks interesting. I played around with this a bit and ported > my patch to embedd the main bio into struct ioend to it. My older > version allowed to chain additional bios to get ioends larger than > 1MB (or PAGE_SIZE * 256), but that will require additional work > in the new completion handler. It does however simplify things quite > a bit, and I suspect a lot of that simplification could be kept even > with chained bios. I've attached the patch below for reference: I really like the idea, especially how using a bioset encapsulates the ioend and binds the life cycle to the bio. It also removes a heap of code, too. We really do need some form of chaining here, though. If we don't, then we'll be doing unwritten extent of set file size transactions for ever 1MB bio completion instead of once for however large writepages can build an ioend. I think this is definitely worth pursuing - are you going to get any time to work on this in the next couple of months, Christoph (i.e. to target the 4.7 merge window)? Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs