linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio: add gfp_t parameter to add_buf
@ 2010-04-29 14:26 Michael S. Tsirkin
  2010-04-29 14:26 ` [PATCH 1/2] virtio: add_buf_gfp Michael S. Tsirkin
  2010-04-29 14:26 ` [PATCH 2/2] virtio-net: pass gfp to add_buf Michael S. Tsirkin
  0 siblings, 2 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2010-04-29 14:26 UTC (permalink / raw)
  To: Rusty Russell, Michael S. Tsirkin, Amit Shah, Mark McLoughlin,
	Tejun Heo, Eric Van Hensbergen, Shirley Ma, Aneesh Kumar K.V,
	linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-03  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 14:26 [PATCH 0/2] virtio: add gfp_t parameter to add_buf Michael S. Tsirkin
2010-04-29 14:26 ` [PATCH 1/2] virtio: add_buf_gfp Michael S. Tsirkin
2010-04-29 14:26 ` [PATCH 2/2] virtio-net: pass gfp to add_buf Michael S. Tsirkin
2010-05-03  9:35   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).