[PATCH 0/2] virtio: add gfp_t parameter to add_buf

From: Michael S. Tsirkin
Date: Fri Apr 30 2010 - 13:23:53 EST


We need to allocate memory to post indirect buffers,
and sometimes drivers do this from a thread context,
so it helps to pass in a gfp_t parameter.

To avoid churn changing all drivers, add a new API
with a _gfp prefix, and make the old call lacking
gfp_t an inline wrapper.


--
MST


Michael S. Tsirkin (2):
virtio: add_buf_gfp
virtio-net: pass gfp to add_buf

drivers/net/virtio_net.c | 8 ++++----
drivers/virtio/virtio_ring.c | 20 +++++++++++---------
include/linux/virtio.h | 22 +++++++++++++++++-----
3 files changed, 32 insertions(+), 18 deletions(-)
--
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/