schedule/sleep over mmget()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux