summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorJens Axboe2014-04-16 19:36:54 +0200
committerJens Axboe2014-04-16 22:15:25 +0200
commitf793aa53786668c9e0db5900f70f560e99d62fa0 (patch)
tree312275021f0186a58a328ff0882f03bf0cb36e1a /drivers/sbus
parentblock: export blk_finish_request (diff)
downloadkernel-qcow2-linux-f793aa53786668c9e0db5900f70f560e99d62fa0.tar.gz
kernel-qcow2-linux-f793aa53786668c9e0db5900f70f560e99d62fa0.tar.xz
kernel-qcow2-linux-f793aa53786668c9e0db5900f70f560e99d62fa0.zip
block: relax when to modify the timeout timer
Since we are now, by default, applying timer slack to expiry times, the logic for when to modify a timer in the block code is suboptimal. The block layer keeps a forward rolling timer per queue for all requests, and modifies this timer if a request has a shorter timeout than what the current expiry time is. However, this breaks down when our rounded timer values get applied slack. Then each new request ends up modifying the timer, since we're still a little in front of the timer + slack. Fix this by allowing a tolerance of HZ / 2, the timeout handling doesn't need to be very precise. This drastically cuts down the number of timer modifications we have to make. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions