Lines Matching full:timeout
3 * Functions related to generic timeout handling of requests.
75 * request by deleting the timer and calling the q's timeout function.
76 * LLDDs who implement their own error recovery MAY ignore the timeout
82 * All we need to ensure is that timeout scan takes place in blk_abort_request()
83 * immediately and that scan sees the new timeout value. in blk_abort_request()
109 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument
114 if (time_after(timeout, maxt)) in blk_rq_timeout()
115 timeout = maxt; in blk_rq_timeout()
117 return timeout; in blk_rq_timeout()
121 * blk_add_timer - Start timeout timer for a single request
134 * Some LLDs, like scsi, peek at the timeout to prevent a in blk_add_timer()
137 if (!req->timeout) in blk_add_timer()
138 req->timeout = q->rq_timeout; in blk_add_timer()
142 expiry = jiffies + req->timeout; in blk_add_timer()
146 * If the timer isn't already pending or this timeout is earlier in blk_add_timer()
152 if (!timer_pending(&q->timeout) || in blk_add_timer()
153 time_before(expiry, q->timeout.expires)) { in blk_add_timer()
154 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer()
163 if (!timer_pending(&q->timeout) || (diff >= HZ / 2)) in blk_add_timer()
164 mod_timer(&q->timeout, expiry); in blk_add_timer()