Block: use round_jiffies_up()
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 6 Nov 2008 07:42:49 +0000 (08:42 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 6 Nov 2008 07:42:49 +0000 (08:42 +0100)
commit7838c15b8dd18e78a523513749e5b54bda07b0cb
tree7fa295ce51f263c55756d3693f5f5ed7beb68a87
parent9c133c469d38043d5aadaa03f2fb840d88d1cf4f
Block: use round_jiffies_up()

This patch (as1159b) changes the timeout routines in the block core to
use round_jiffies_up().  There's no point in rounding the timer
deadline down, since if it expires too early we will have to restart
it.

The patch also removes some unnecessary tests when a request is
removed from the queue's timer list.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-timeout.c