mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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:
parent
791f3465c4
commit
ea6e7ceeda
1 changed files with 2 additions and 3 deletions
|
@ -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 @@ static void io_worker_handle_work(struct io_worker *worker)
|
|||
*/
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue