The return value of io_wqe_create_worker() should be false if we cannot create a new worker according to the name of this function. Signed-off-by: Hao Xu <haoxu@xxxxxxxxxxxxxxxxx> --- fs/io-wq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io-wq.c b/fs/io-wq.c index 382efca4812b..1b102494e970 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -267,7 +267,7 @@ static bool io_wqe_create_worker(struct io_wqe *wqe, struct io_wqe_acct *acct) return create_io_worker(wqe->wq, wqe, acct->index); } - return true; + return false; } static void io_wqe_inc_running(struct io_worker *worker) -- 2.24.4