diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-15 15:20:08 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-15 22:21:04 +0200 |
commit | 519760df251bf2dcafb0af23df0229096537e78a (patch) | |
tree | 65266bd1ad592fa294ead877ba049643c8c5646c /io_uring/notif.c | |
parent | io_uring/rsrc: extract SCM file put helper (diff) | |
download | linux-519760df251bf2dcafb0af23df0229096537e78a.tar.xz linux-519760df251bf2dcafb0af23df0229096537e78a.zip |
io_uring/notif: add constant for ubuf_info flags
Add a constant IO_NOTIF_UBUF_FLAGS for struct ubuf_info flags that
notifications use. That should minimise merge conflicts for planned
changes touching both io_uring and net at the same time.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/notif.c')
-rw-r--r-- | io_uring/notif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/notif.c b/io_uring/notif.c index e1846a25dde1..d3e703c37aba 100644 --- a/io_uring/notif.c +++ b/io_uring/notif.c @@ -79,7 +79,7 @@ struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx) notif->io_task_work.func = io_req_task_complete; nd = io_notif_to_data(notif); - nd->uarg.flags = SKBFL_ZEROCOPY_FRAG | SKBFL_DONT_ORPHAN; + nd->uarg.flags = IO_NOTIF_UBUF_FLAGS; nd->uarg.callback = io_tx_ubuf_callback; refcount_set(&nd->uarg.refcnt, 1); return notif; |