remove duplicate IO_WQ_BIT_EXIT check since we do it in while() Signed-off-by: Hao Xu <haoxu@xxxxxxxxxxxxxxxxx> --- fs/io-wq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/io-wq.c b/fs/io-wq.c index 0ae9ecadf295..1c0575b29734 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -503,8 +503,7 @@ static int io_wqe_worker(void *data) if (fatal_signal_pending(current)) break; /* timed out, exit unless we're the fixed worker */ - if (test_bit(IO_WQ_BIT_EXIT, &wq->state) || - !(worker->flags & IO_WORKER_F_FIXED)) + if (!(worker->flags & IO_WORKER_F_FIXED)) break; } -- 1.8.3.1