summaryrefslogtreecommitdiffstats
path: root/firmware/e100
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2010-04-14 20:54:03 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-12 15:02:43 -0700
commit51b7721fd83309000aa19a2a6ec0edb9665bb5f9 (patch)
tree56beb66f5f9fb92a604988ac52e55f76d1c08be3 /firmware/e100
parent3d563ebbbc07e5bcd89a4e8c9c6658e56a1e0f9c (diff)
downloadkernel-crypto-51b7721fd83309000aa19a2a6ec0edb9665bb5f9.tar.gz
kernel-crypto-51b7721fd83309000aa19a2a6ec0edb9665bb5f9.tar.xz
kernel-crypto-51b7721fd83309000aa19a2a6ec0edb9665bb5f9.zip
block: ensure jiffies wrap is handled correctly in blk_rq_timed_out_timer
commit a534dbe96e9929c7245924d8252d89048c23d569 upstream. blk_rq_timed_out_timer() relied on blk_add_timer() never returning a timer value of zero, but commit 7838c15b8dd18e78a523513749e5b54bda07b0cb removed the code that bumped this value when it was zero. Therefore when jiffies is near wrap we could get unlucky & not set the timeout value correctly. This patch uses a flag to indicate that the timeout value was set and so handles jiffies wrap correctly, and it keeps all the logic in one function so should be easier to maintain in the future. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'firmware/e100')
0 files changed, 0 insertions, 0 deletions