Skip to content

Commit eb37267

Browse files
committed
io-wq: remove unused io_wqe_need_worker() function
A previous commit removed the need for this, but overlooked that we no longer use it at all. Get rid of it. Fixes: 685fe7f ("io-wq: eliminate the need for a manager thread") Reported-by: kernel test robot <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 734551d commit eb37267

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

fs/io-wq.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -661,19 +661,6 @@ static void create_io_worker(struct io_wq *wq, struct io_wqe *wqe, int index)
661661
wake_up_new_task(tsk);
662662
}
663663

664-
static inline bool io_wqe_need_worker(struct io_wqe *wqe, int index)
665-
__must_hold(wqe->lock)
666-
{
667-
struct io_wqe_acct *acct = &wqe->acct[index];
668-
669-
if (acct->nr_workers && test_bit(IO_WQ_BIT_EXIT, &wqe->wq->state))
670-
return false;
671-
/* if we have available workers or no work, no need */
672-
if (!hlist_nulls_empty(&wqe->free_list) || !io_wqe_run_queue(wqe))
673-
return false;
674-
return acct->nr_workers < acct->max_workers;
675-
}
676-
677664
/*
678665
* Iterate the passed in list and call the specific function for each
679666
* worker that isn't exiting

0 commit comments

Comments
 (0)