io_uring/io-wq: drop outdated comment
authorJens Axboe <axboe@kernel.dk>
Mon, 27 Mar 2023 19:10:21 +0000 (13:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Apr 2023 13:16:15 +0000 (07:16 -0600)
Since the move to PF_IO_WORKER, we don't juggle memory context manually
anymore. Remove that outdated part of the comment for __io_worker_idle().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c

index 2b0b2e3..b271598 100644 (file)
@@ -415,11 +415,7 @@ static void __io_worker_busy(struct io_wq *wq, struct io_worker *worker)
 }
 
 /*
- * No work, worker going to sleep. Move to freelist, and unuse mm if we
- * have one attached. Dropping the mm may potentially sleep, so we drop
- * the lock in that case and return success. Since the caller has to
- * retry the loop in that case (we changed task state), we don't regrab
- * the lock if we return success.
+ * No work, worker going to sleep. Move to freelist.
  */
 static void __io_worker_idle(struct io_wq *wq, struct io_worker *worker)
        __must_hold(wq->lock)