All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Rusty Russell <rusty@rustcorp.com.au>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Amit Shah <amit.shah@redhat.com>,
	Mark McLoughlin <markmc@redhat.com>, Tejun Heo <tj@kernel.org>,
	Eric Van Hensbergen <ericvh@gmail.com>,
	Shirley Ma <xma@us.ibm.com>,
	"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] virtio: add gfp_t parameter to add_buf
Date: Thu, 29 Apr 2010 17:26:31 +0300	[thread overview]
Message-ID: <cover.1272549641.git.mst@redhat.com> (raw)

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

             reply	other threads:[~2010-04-30 17:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29 14:26 Michael S. Tsirkin [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1272549641.git.mst@redhat.com \
    --to=mst@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=ericvh@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markmc@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=tj@kernel.org \
    --cc=xma@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.