On 2/7/21 3:34 PM, Pavel Begunkov wrote: > For SQPOLL rings tctx_inflight() always returns zero, so it might skip > doing full cancellion. It's fine because we jam all sqpoll submissions > in any case and do go through files cancel for them, but not nice. > > Do the intended full cancellation, by mimicing __io_uring_task_cancel() > waiting but impersonating SQPOLL task. LGTM, applied. -- Jens Axboe