iowatcher: Skip events beyond max_seconds
authorJan Kara <jack@suse.cz>
Thu, 4 Apr 2013 10:18:25 +0000 (06:18 -0400)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:08 +0000 (12:02 -0700)
commit6a079b020a3e57aec95766cd8b97f15962af4674
treec9a4a4d22a0df2272d63fcb1fbce765fe0d7472f
parent7c883a9412d9dad32c23084c86272602bb7ffd5c
iowatcher: Skip events beyond max_seconds

Skip events beyond max_seconds.  This not only saves CPU time but also
prevents memory corruption because not all functions were checking that
given time is in the expected range. Also remove now unnecessary checks
in the called functions.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/blkparse.c
iowatcher/blkparse.h
iowatcher/main.c