From: Jens Axboe Date: Thu, 7 Nov 2019 16:17:36 +0000 (-0700) Subject: io-wq: io_wqe_run_queue() doesn't need to use list_empty_careful() X-Git-Tag: v5.5-rc1~204^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91d666ea43adef57a6cd50c81b9603c545654981;p=thirdparty%2Fkernel%2Flinux.git 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: Jens Axboe --- diff --git a/fs/io-wq.c b/fs/io-wq.c index ba40a7ee31c33..9b375009a553e 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -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; }