* [GIT PULL] io_uring fix for 5.7-rc3
@ 2020-04-24 18:03 Jens Axboe
2020-04-24 20:03 ` Linus Torvalds
2020-04-24 20:50 ` pr-tracker-bot
0 siblings, 2 replies; 4+ messages in thread
From: Jens Axboe @ 2020-04-24 18:03 UTC (permalink / raw)
To: Linus Torvalds; +Cc: io-uring, [email protected]
Hi Linus,
Single fixup for a change that went into -rc2, please pull.
git://git.kernel.dk/linux-block.git tags/io_uring-5.7-2020-04-24
----------------------------------------------------------------
Xiaoguang Wang (1):
io_uring: only restore req->work for req that needs do completion
fs/io_uring.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] io_uring fix for 5.7-rc3
2020-04-24 18:03 [GIT PULL] io_uring fix for 5.7-rc3 Jens Axboe
@ 2020-04-24 20:03 ` Linus Torvalds
2020-04-24 20:11 ` Jens Axboe
2020-04-24 20:50 ` pr-tracker-bot
1 sibling, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2020-04-24 20:03 UTC (permalink / raw)
To: Jens Axboe; +Cc: io-uring, [email protected]
On Fri, Apr 24, 2020 at 11:03 AM Jens Axboe <[email protected]> wrote:
>
> Single fixup for a change that went into -rc2, please pull.
I'd like to point out that this was exactly the code that I pointed to
as being badly written and hard to understand:
"That whole apoll thing is disgusting.
I cannot convince myself it is right. How do you convince yourself?"
And you at that time claimed it was all fairly simple and clear.
I repeat: that whole apoll thing is disgusting. It wasn't simple and
clear and only a few obvious cases that had issues.
In fact, now it's even less clear, with an even more complicated check
for when to restore things,
I think that whole approach needs re-thinking. Is the union really worth it?
Can you guarantee and explain why _this_ time it is right?
Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] io_uring fix for 5.7-rc3
2020-04-24 20:03 ` Linus Torvalds
@ 2020-04-24 20:11 ` Jens Axboe
0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2020-04-24 20:11 UTC (permalink / raw)
To: Linus Torvalds; +Cc: io-uring, [email protected]
On 4/24/20 2:03 PM, Linus Torvalds wrote:
> On Fri, Apr 24, 2020 at 11:03 AM Jens Axboe <[email protected]> wrote:
>>
>> Single fixup for a change that went into -rc2, please pull.
>
> I'd like to point out that this was exactly the code that I pointed to
> as being badly written and hard to understand:
>
> "That whole apoll thing is disgusting.
>
> I cannot convince myself it is right. How do you convince yourself?"
>
> And you at that time claimed it was all fairly simple and clear.
I know, and I was pretty much expecting you to bring that up...
> I repeat: that whole apoll thing is disgusting. It wasn't simple and
> clear and only a few obvious cases that had issues.
>
> In fact, now it's even less clear, with an even more complicated check
> for when to restore things,
>
> I think that whole approach needs re-thinking. Is the union really worth it?
>
> Can you guarantee and explain why _this_ time it is right?
To be fair, this place is really the only place that is a bit tricky, since
it's where we restore things. The rest is clear, since we know exactly
which poll (&req->poll, or req->apoll) that is being used. The fix from
last week ended up somewhat conflicting with the cancellation part, which
is part of the reason it slipped.
But I do hear your point. If we run into anything like this again, I'll
bite the bullet and un-unionize this thing. I just care pretty deeply
about keeping the footprint of a single io_uring request down to as
little as we can, as we can be doing millions of these (per core). We've
still got some room in terms of not spilling into the next cacheline.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] io_uring fix for 5.7-rc3
2020-04-24 18:03 [GIT PULL] io_uring fix for 5.7-rc3 Jens Axboe
2020-04-24 20:03 ` Linus Torvalds
@ 2020-04-24 20:50 ` pr-tracker-bot
1 sibling, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2020-04-24 20:50 UTC (permalink / raw)
To: Jens Axboe; +Cc: Linus Torvalds, io-uring, [email protected]
The pull request you sent on Fri, 24 Apr 2020 12:03:28 -0600:
> git://git.kernel.dk/linux-block.git tags/io_uring-5.7-2020-04-24
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/aee1a009c9d247756b368890e3f886174776d3db
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-24 20:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24 18:03 [GIT PULL] io_uring fix for 5.7-rc3 Jens Axboe
2020-04-24 20:03 ` Linus Torvalds
2020-04-24 20:11 ` Jens Axboe
2020-04-24 20:50 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox