Skip to contentSkip to conversation

io_uring: remove duplicate IO_WQ_BIT_EXIT check

PATCH New Hao Xu 1 participant 1 message Mar 16, 2021

Subsystems (2)
lore
Share & tools
lore

Hao Xu

author
#0 lore raw

PATCH 1/1 io_uring: remove duplicate IO_WQ_BIT_EXIT check

remove duplicate IO_WQ_BIT_EXIT check since we do it in while()

---
 fs/io-wq.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/io-wq.c +1 -2
index 0ae9ecadf295..1c0575b29734 100644
@@ -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;
 	}
 
Signature · 1 line
1.8.3.1