Re: [PATCH 2/4] io_uring: handle EAGAIN iopoll

2020-06-30 Thread kernel test robot
Hi Pavel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20200622] [cannot apply to linus/master v5.8-rc2 v5.8-rc1 v5.7 v5.8-rc3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as

[PATCH 2/4] io_uring: handle EAGAIN iopoll

2020-06-22 Thread Pavel Begunkov
req->iopoll() is not necessarily called by a task that submitted a request. Because of that, it's dangerous to grab_env() and punt async on -EGAIN, potentially grabbinf another task's mm and corrupting its memory. Do resubmit from the submitter task context. Signed-off-by: Pavel Begunkov ---