Skip to content

Commit ea6e7ce

Browse files
committed
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 <[email protected]>
1 parent 791f346 commit ea6e7ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/io-wq.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ static void io_wqe_dec_running(struct io_worker *worker)
405405
* Worker will start processing some work. Move it to the busy list, if
406406
* it's currently on the freelist
407407
*/
408-
static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker,
409-
struct io_wq_work *work)
408+
static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker)
410409
__must_hold(wqe->lock)
411410
{
412411
if (worker->flags & IO_WORKER_F_FREE) {
@@ -556,7 +555,7 @@ static void io_worker_handle_work(struct io_worker *worker)
556555
*/
557556
work = io_get_next_work(acct, worker);
558557
if (work)
559-
__io_worker_busy(wqe, worker, work);
558+
__io_worker_busy(wqe, worker);
560559

561560
raw_spin_unlock(&wqe->lock);
562561
if (!work)

0 commit comments

Comments
 (0)