public inbox for [email protected]
 help / color / mirror / Atom feed
From: Ryan Sharpelletti <[email protected]>
To: [email protected]
Subject: Potential corner case in release 5.8
Date: Fri, 5 Mar 2021 14:07:47 -0500	[thread overview]
Message-ID: <CA+9Y6nzQ8M++uMjJV8_LbB+HwvSZOO3kzKoRO-OaMggdU+xXTA@mail.gmail.com> (raw)

Hi,

I suspect there is a corner case for io_uring in release 5.8.

Can you please explain where the associated mmdrop/kthread_unuse_mm
calls for io_sq_thread_acquire_mm in io_init_req(...) are?
Specifically, what would happen if there was an error after calling
io_sq_thread_acquire_mm (for example, the -EINVAL a few lines after)?

From what I can understand, it looks like the kthread_unuse_mm and
mmput might be handled in the call to io_sq_thread_acquire_mm in
io_sq_thread. However, I am not seeing where mmdrop might be called.

Thanks,
Ryan

             reply	other threads:[~2021-03-05 19:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05 19:07 Ryan Sharpelletti [this message]
2021-04-06 17:53 ` Potential corner case in release 5.8 Ryan Sharpelletti
2021-04-07 12:52   ` 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 \
    --in-reply-to=CA+9Y6nzQ8M++uMjJV8_LbB+HwvSZOO3kzKoRO-OaMggdU+xXTA@mail.gmail.com \
    [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