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

Commit 072792dc authored by Joe Thornber's avatar Joe Thornber Committed by Mike Snitzer
Browse files

dm cache: fix incorrect 'idle_time' reset in IO tracker



Some bios have no payload (eg, a FLUSH), don't reset the idle_time when
these come in.

Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 2ea659a9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -94,6 +94,9 @@ static void iot_io_begin(struct io_tracker *iot, sector_t len)

static void __iot_io_end(struct io_tracker *iot, sector_t len)
{
	if (!len)
		return;

	iot->in_flight -= len;
	if (!iot->in_flight)
		iot->idle_time = jiffies;