[lkml]   [2010]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/2] virtio: add gfp_t parameter to add_buf
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.


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(-)

 \ /
  Last update: 2010-04-30 19:27    [W:0.061 / U:2.364 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site