On Wed, Aug 11, 2021 at 09:26:33AM +0100, Christoph Hellwig wrote: > I really don't like all the layering violations in here. What is the > problem with a simple (optional) percpu cache in the bio_set? Something > like the completely untested patch below: A slightly updated version that actually compiles and survives minimal testing is here: http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/bio-cache