On 3/7/21 3:54 AM, Stefan Metzmacher wrote: > Hi Jens, > > I guess on top of your "io-wq: always track creds for async issue" > we want to following to patches in order to restore the sq_thread > behavior of 5.11 (and older) with IORING_SETUP_ATTACH_WQ. > > - io_uring: run __io_sq_thread() with the initial creds > - io_uring: kill io_sq_thread_fork() and return -EOWNERDEAD > - io_ > I've not tested them, but they compile and as far as I read the > 5.11 code, they should restore the old behavior. Thanks this looks good, I'll apply them. There's really no point to the fork handling of SQPOLL anymore, since the unshare code went away. -- Jens Axboe