Commit 91d666ea authored by Jens Axboe's avatar Jens Axboe

io-wq: io_wqe_run_queue() doesn't need to use list_empty_careful()

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: default avatarJens Axboe <axboe@kernel.dk>
parent 1d7bb1d5
...@@ -338,8 +338,7 @@ static void io_worker_handle_work(struct io_worker *worker) ...@@ -338,8 +338,7 @@ static void io_worker_handle_work(struct io_worker *worker)
static inline bool io_wqe_run_queue(struct io_wqe *wqe) static inline bool io_wqe_run_queue(struct io_wqe *wqe)
__must_hold(wqe->lock) __must_hold(wqe->lock)
{ {
if (!list_empty_careful(&wqe->work_list) && if (!list_empty(&wqe->work_list) && !(wqe->flags & IO_WQE_FLAG_STALLED))
!(wqe->flags & IO_WQE_FLAG_STALLED))
return true; return true;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment