lkml.org 
[lkml]   [2010]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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.


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

\
 
 \ /
  Last update: 2010-04-30 19:27    [from the cache]
©2003-2011 Jasper Spaans