From: Pavel Begunkov <[email protected]>
To: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH v2 0/2] implement timeout update
Date: Mon, 30 Nov 2020 19:11:14 +0000 [thread overview]
Message-ID: <[email protected]> (raw)
Timeout update is a IORING_OP_TIMEOUT_REMOVE request with timeout_flags
containing a new IORING_TIMEOUT_UPDATE flag. Even though naming may be
confusing, but update and remove are very similar both code and
functionality wise, so doesn't seem necessary to add a new opcode.
Updates don't support offsets, but I don't see a need either. Can
be implemented in the future by passing it in sqe->len.
v2: nits for [2/2] (Jens)
Pavel Begunkov (2):
io_uring: restructure io_timeout_cancel()
io_uring: add timeout update
fs/io_uring.c | 93 +++++++++++++++++++++++++++--------
include/uapi/linux/io_uring.h | 1 +
2 files changed, 73 insertions(+), 21 deletions(-)
--
2.24.0
next reply other threads:[~2020-11-30 19:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 19:11 Pavel Begunkov [this message]
2020-11-30 19:11 ` [PATCH v2 1/2] io_uring: restructure io_timeout_cancel() Pavel Begunkov
2020-11-30 19:11 ` [PATCH v2 2/2] io_uring: add timeout update Pavel Begunkov
2020-11-30 22:53 ` [PATCH v2 0/2] implement " Jens Axboe
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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox