io-wq: io_wqe_run_queue() doesn't need to use list_empty_careful()
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Nov 2019 16:17:36 +0000 (09:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 Nov 2019 18:45:32 +0000 (11:45 -0700)
We hold the wqe lock at this point (which is also annotated), so there's
no need to use the careful variant of list_empty().

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

index ba40a7e..9b37500 100644 (file)
@@ -338,8 +338,7 @@ next:
 static inline bool io_wqe_run_queue(struct io_wqe *wqe)
        __must_hold(wqe->lock)
 {
-       if (!list_empty_careful(&wqe->work_list) &&
-           !(wqe->flags & IO_WQE_FLAG_STALLED))
+       if (!list_empty(&wqe->work_list) && !(wqe->flags & IO_WQE_FLAG_STALLED))
                return true;
        return false;
 }