Re: [PATCH 5.9] io_uring: fix NULL-mm for linked reqs

From: Jens Axboe
Date: Thu Jun 25 2020 - 09:24:30 EST


On 6/25/20 3:38 AM, Pavel Begunkov wrote:
> __io_queue_sqe() tries to handle all request of a link,
> so it's not enough to grab mm in io_sq_thread_acquire_mm()
> based just on the head.
>
> Don't check req->needs_mm and do it always.

Applied, thanks.

--
Jens Axboe