Skip to content

virtio: add gfp_t parameter to add_buf

Michael S. Tsirkin lkml 1 version Applied

Status from this message: Thanks, applied with the predecessor.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2virtio: add_buf_gfpdrivers/virtio/virtio_ring.c include/linux/virtio.h+28 -140 replies
2/2virtio-net: pass gfp to add_bufdrivers/net/virtio_net.c+4 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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.

Signature · 11 lines
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(-)