summaryrefslogtreecommitdiff
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-04-20 11:24:22 -0600
committerJens Axboe <axboe@kernel.dk>2021-04-20 11:24:22 -0600
commiteb372672295450caa34875d64415735b26e7888a (patch)
tree0ae45b39d44d374fc114a115d3c5e246455cd183 /fs/io-wq.c
parent734551df6f9bedfbefcd113ede665945e9de0b99 (diff)
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: 685fe7feedb9 ("io-wq: eliminate the need for a manager thread") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r--fs/io-wq.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index 49def8714083..5361a9b4b47b 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -661,19 +661,6 @@ fail:
wake_up_new_task(tsk);
}
-static inline bool io_wqe_need_worker(struct io_wqe *wqe, int index)
- __must_hold(wqe->lock)
-{
- struct io_wqe_acct *acct = &wqe->acct[index];
-
- if (acct->nr_workers && test_bit(IO_WQ_BIT_EXIT, &wqe->wq->state))
- return false;
- /* if we have available workers or no work, no need */
- if (!hlist_nulls_empty(&wqe->free_list) || !io_wqe_run_queue(wqe))
- return false;
- return acct->nr_workers < acct->max_workers;
-}
-
/*
* Iterate the passed in list and call the specific function for each
* worker that isn't exiting