Re: [PATCH 7/9] vhost: allow userspace to create workers

From
Stefan Hajnoczi <stefanha@redhat.com>
Date
2021-06-21 13:41:18
Also in
target-devel, virtualization
Reply to
Mike Christie, 2021-06-18
On Thu, Jun 17, 2021 at 09:49:07PM -0500, Mike Christie wrote:
Again it's io_uring. Check out fs/io_uring.c:__io_account_mem(). For RLIMIT_MEMLOCK
it just does the check and increments the user's counter itself. It's simple like
option 2, and it handles the issue where the process doing the ioctl wasn't having
its RLIMIT_NPROC checked/updated.
This can work too. It doesn't cover cases where code called indirectly
acquires resources, but that's probably fine for the vhost worker thread
case.

Stefan

Attachments

Thread (32 messages) 32 messages, 3 authors, last reply 2021-06-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help