diff --git a/io_uring/io-wq.c b/io_uring/io-wq.c index b2715988791ebe28c7f28aa9dbbb3086d2cecb84..fe38eb0cbc82a245be2e83302381850ea78cb5fc 100644 --- a/io_uring/io-wq.c +++ b/io_uring/io-wq.c @@ -221,9 +221,6 @@ static void io_worker_exit(struct io_worker *worker) raw_spin_unlock(&wq->lock); io_wq_dec_running(worker); worker->flags = 0; - preempt_disable(); - current->flags &= ~PF_IO_WORKER; - preempt_enable(); kfree_rcu(worker, rcu); io_worker_ref_put(wq);