]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ab871e05ec469e1ff119292c14430611f038000
tree7fa295ce51f263c55756d3693f5f5ed7beb68a87
parente5c9f90b0c2d8f985bd7a65680084211d18a60dc
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