block: add comment in blk_rq_timed_out() about why next can not be 0
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
565e411d76
commit
65d3618ccf
1 changed files with 6 additions and 1 deletions
|
@ -132,7 +132,12 @@ void blk_rq_timed_out_timer(unsigned long data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next_set && !list_empty(&q->timeout_list))
|
/*
|
||||||
|
* next can never be 0 here with the list non-empty, since we always
|
||||||
|
* bump ->deadline to 1 so we can detect if the timer was ever added
|
||||||
|
* or not. See comment in blk_add_timer()
|
||||||
|
*/
|
||||||
|
if (next)
|
||||||
mod_timer(&q->timeout, round_jiffies_up(next));
|
mod_timer(&q->timeout, round_jiffies_up(next));
|
||||||
|
|
||||||
spin_unlock_irqrestore(q->queue_lock, flags);
|
spin_unlock_irqrestore(q->queue_lock, flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue