diff options
author | Ming Lei <ming.lei@redhat.com> | 2024-11-07 14:01:36 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-08 01:24:33 +0300 |
commit | 039c878db7add23c1c9ea18424c442cce76670f9 (patch) | |
tree | 5815f2cce4e7e3667058e68a6f624a39731a4eb3 /tools/perf/scripts/python/libxed.py | |
parent | 4f219fcce5e4366cc121fc98270beb1fbbb3df2b (diff) | |
download | linux-039c878db7add23c1c9ea18424c442cce76670f9.tar.xz |
io_uring/rsrc: add & apply io_req_assign_buf_node()
The following pattern becomes more and more:
+ io_req_assign_rsrc_node(&req->buf_node, node);
+ req->flags |= REQ_F_BUF_NODE;
so make it a helper, which is less fragile to use than above code, for
example, the BUF_NODE flag is even missed in current io_uring_cmd_prep().
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241107110149.890530-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions