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

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
...@@ -94,6 +94,9 @@ static void iot_io_begin(struct io_tracker *iot, sector_t len) ...@@ -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) static void __iot_io_end(struct io_tracker *iot, sector_t len)
{ {
if (!len)
return;
iot->in_flight -= len; iot->in_flight -= len;
if (!iot->in_flight) if (!iot->in_flight)
iot->idle_time = jiffies; iot->idle_time = jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment