virtio: add gfp_t parameter to add_buf
Status from this message: Thanks, applied with the predecessor.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | virtio: add_buf_gfpdrivers/ include/ | +28 | 0 replies | |
| 2/2 | virtio-net: pass gfp to add_bufdrivers/ | +4 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)