Lines Matching full:timeout
3 * Functions related to generic timeout handling of requests.
77 * request by deleting the timer and calling the q's timeout function.
78 * LLDDs who implement their own error recovery MAY ignore the timeout
84 * All we need to ensure is that timeout scan takes place in blk_abort_request()
85 * immediately and that scan sees the new timeout value. in blk_abort_request()
93 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument
98 if (time_after(timeout, maxt)) in blk_rq_timeout()
99 timeout = maxt; in blk_rq_timeout()
101 return timeout; in blk_rq_timeout()
105 * blk_add_timer - Start timeout timer for a single request
118 * Some LLDs, like scsi, peek at the timeout to prevent a in blk_add_timer()
121 if (!req->timeout) in blk_add_timer()
122 req->timeout = q->rq_timeout; in blk_add_timer()
126 expiry = jiffies + req->timeout; in blk_add_timer()
130 * If the timer isn't already pending or this timeout is earlier in blk_add_timer()
136 if (!timer_pending(&q->timeout) || in blk_add_timer()
137 time_before(expiry, q->timeout.expires)) { in blk_add_timer()
138 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer()
147 if (!timer_pending(&q->timeout) || (diff >= HZ / 2)) in blk_add_timer()
148 mod_timer(&q->timeout, expiry); in blk_add_timer()