提交 072792dc 编写于 作者: J Joe Thornber 提交者: 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: NJoe Thornber <ejt@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册