Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49db0414 authored by Jens Axboe's avatar Jens Axboe
Browse files

writeback: use schedule_timeout_interruptible()



Gets rid of a manual set_current_state().

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 8010c3b6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -884,8 +884,7 @@ int bdi_writeback_task(struct bdi_writeback *wb)
		}

		wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
		set_current_state(TASK_INTERRUPTIBLE);
		schedule_timeout(wait_jiffies);
		schedule_timeout_interruptible(wait_jiffies);
		try_to_freeze();
	}