]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss: Clean up timeout computations.
authorAndre Noll <maan@systemlinux.org>
Thu, 14 Jul 2011 06:17:08 +0000 (08:17 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 7 Aug 2011 11:40:25 +0000 (13:40 +0200)
commit0bd00f72312a79900d211e735b135c220ddd0d68
tree6b497a7aba02998105a8b28fb972826d016993ef
parent3d6ca6e3ae198017164e544c59d622b11a5afdde
vss: Clean up timeout computations.

By passing the sched struct to vss_compute_timeout() we can get
rid of the static the_timeout struct in vss_compute_timeout(). The
previous patch, which made the timeout helper functions of sched.c
return whether the given barrier is in the past, allows to simplify
the timeout code of vss.c a bit.

The patch also combines the general timeout computations and the
computation for FEC slices into a single function.
vss.c