summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-01-18 19:10:11 -0700
committerJens Axboe <axboe@kernel.dk>2022-01-18 19:10:11 -0700
commitea6e7ceedaf11e1bad3ff21e8624694d696d276b (patch)
tree363e82048ae3126b0e5ef7a02159a45229c4c5be /fs/io-wq.c
parent791f3465c4afde02d7f16cf7424ca87070b69396 (diff)
downloadlinux-ea6e7ceedaf11e1bad3ff21e8624694d696d276b.tar.bz2
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>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r--fs/io-wq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index 5c4f582d6549..f8a5f172b9eb 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -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
* it's currently on the freelist
*/
-static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker,
- struct io_wq_work *work)
+static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker)
__must_hold(wqe->lock)
{
if (worker->flags & IO_WORKER_F_FREE) {
@@ -556,7 +555,7 @@ get_next:
*/
work = io_get_next_work(acct, worker);
if (work)
- __io_worker_busy(wqe, worker, work);
+ __io_worker_busy(wqe, worker);
raw_spin_unlock(&wqe->lock);
if (!work)