linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* schedule/sleep over mmget()
@ 2020-06-18 15:20 Jens Axboe
  2020-06-19 11:43 ` Michal Hocko
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2020-06-18 15:20 UTC (permalink / raw)
  To: linux-mm

Hi,

Got a question that I couldn't immediately find an answer to. io_uring
currently jumps through a few hoops to avoid holding a process mm over
schedule, and it doesn't look like that's necessary.

Is it fine for a kthread to do mmget/kthread_use_mm at the start, and
only put/unuse when it exits? Or is it more prudent to drop/re-acquire
over schedule for potential longer periods of idleness?

Thanks,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-19 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 15:20 schedule/sleep over mmget() Jens Axboe
2020-06-19 11:43 ` Michal Hocko
2020-06-19 13:59   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).