virtio ring cleanups, which save stack on older gcc

From: Rusty Russell
Date: Thu May 29 2014 - 03:28:49 EST


They don't make much difference: the easier fix is use gcc 4.8
which drops stack required across virtio block's virtio_queue_rq
down to that kmalloc in virtio_ring from 528 to 392 bytes.

Still, these (*lightly tested*) patches reduce to 432 bytes,
even for gcc 4.6.4. Posted here FYI.

Cheers,
Rusty.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/