]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm cache: add io_tracker
authorJoe Thornber <ejt@redhat.com>
Fri, 15 May 2015 12:45:30 +0000 (13:45 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:03 +0000 (14:19 -0400)
commit77289d32073c4eac57fcca2abe6caefc6f3dc7d6
treedd862395e14ead66f606bf296001a9942d9562d0
parentfb4100ae7f312c3d614b37621c2b17b3b7cf65f8
dm cache: add io_tracker

A little class that keeps track of the volume of io that is in flight,
and the length of time that a device has been idle for.

FIXME: rather than jiffes, may be best to use ktime_t (to support faster
devices).

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c