io-wq: remove useless 'work' argument to __io_worker_busy()

We don't use 'work' anymore in the busy logic, remove the dead argument.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe 2022-01-18 19:10:11 -07:00
Родитель 791f3465c4
Коммит ea6e7ceeda
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -405,8 +405,7 @@ static void io_wqe_dec_running(struct io_worker *worker)
* Worker will start processing some work. Move it to the busy list, if * Worker will start processing some work. Move it to the busy list, if
* it's currently on the freelist * it's currently on the freelist
*/ */
static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker, static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker)
struct io_wq_work *work)
__must_hold(wqe->lock) __must_hold(wqe->lock)
{ {
if (worker->flags & IO_WORKER_F_FREE) { if (worker->flags & IO_WORKER_F_FREE) {
@ -556,7 +555,7 @@ get_next:
*/ */
work = io_get_next_work(acct, worker); work = io_get_next_work(acct, worker);
if (work) if (work)
__io_worker_busy(wqe, worker, work); __io_worker_busy(wqe, worker);
raw_spin_unlock(&wqe->lock); raw_spin_unlock(&wqe->lock);
if (!work) if (!work)