public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: Jens Axboe <[email protected]>, Keith Busch <[email protected]>
Cc: Keith Busch <[email protected]>, [email protected]
Subject: Re: [PATCH] io_uring: save repeated issue_flags
Date: Wed, 6 Dec 2023 01:31:35 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On 12/5/23 23:11, Jens Axboe wrote:
> On 12/5/23 4:02 PM, Keith Busch wrote:
>> On Tue, Dec 05, 2023 at 03:00:52PM -0700, Jens Axboe wrote:
>>>>   		if (!file->f_op->uring_cmd_iopoll)
>>>>   			return -EOPNOTSUPP;
>>>> -		issue_flags |= IO_URING_F_IOPOLL;
>>>>   		req->iopoll_completed = 0;
>>>>   	}
>>>>   
>>>> +	issue_flags |= ctx->issue_flags;
>>>>   	ret = file->f_op->uring_cmd(ioucmd, issue_flags);
>>>>   	if (ret == -EAGAIN) {
>>>>   		if (!req_has_async_data(req)) {
>>>
>>> I obviously like this idea, but it should be accompanied by getting rid
>>> of ->compat and ->syscall_iopoll in the ctx as well?
>>
>> Yeah, I considered that, and can incorporate it here. Below is a snippet
>> of what I had earlier to make that happen, but felt the purpose for the
>> "issue_flags" was uring_cmd specific and disconnected from everyone
>> else. Maybe I'm overthinking it...
> 
> I'd just do a patch 2 that does compat and syscall_iopoll. And then if

I don't understand why and how you'd get rid of syscall_iopoll,
considering it's not exposed to cmds, and if it is, then we have
a bigger problem. It's a bit sleazily defined and is not just
SETUP_IOPOLL.

> we ever have a new issue flags (as your other series), then it'd become
> natural to add that flag too.
> 
> It's not a hard requirement, but it's somewhat ugly to have the same
> state in two spots. Which is why I'd prefer if we got rid of the actual
> compat/syscall_iopoll members as well, after the conversion is done.

-- 
Pavel Begunkov

  reply	other threads:[~2023-12-06  1:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05 21:55 [PATCH] io_uring: save repeated issue_flags Keith Busch
2023-12-05 22:00 ` Jens Axboe
2023-12-05 23:02   ` Keith Busch
2023-12-05 23:11     ` Jens Axboe
2023-12-06  1:31       ` Pavel Begunkov [this message]
2023-12-06  1:26   ` Pavel Begunkov
2023-12-06  1:41     ` Jens Axboe
2023-12-06  1:51       ` Pavel Begunkov

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] \
    [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