A little light reading for a Wednesday afternoon ;-)
Nice hack, way to go. So this will wait synchronously in try_to_free_buffers
if we have to go around twice in alloc_bounce_page or alloc_bounce_bh (the
latter eventually resulting in a page_alloc from kmem_cache grow).
What does SLAB_LEVEL_MASK do? Did you find out by hitting the BUG when you
tried the patch? Anyway, it needs a comment.
I had in mind a completely different approach to try, using a semaphore to
count bounce buffers, and block when they run out. Your patch fits the
pattern of the current busy-waiting strategy much better. It's the right
thing to do.
OK, race you to the next bug ;-)
-- Daniel- 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/