Lines Matching refs: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
83 * immediately and that scan sees the new timeout value.
109 unsigned long blk_rq_timeout(unsigned long timeout)
114 if (time_after(timeout, maxt))
115 timeout = maxt;
117 return timeout;
121 * blk_add_timer - Start timeout timer for a single request
134 * Some LLDs, like scsi, peek at the timeout to prevent a
137 if (!req->timeout)
138 req->timeout = q->rq_timeout;
142 expiry = jiffies + req->timeout;
146 * If the timer isn't already pending or this timeout is earlier
152 if (!timer_pending(&q->timeout) ||
153 time_before(expiry, q->timeout.expires)) {
154 unsigned long diff = q->timeout.expires - expiry;
163 if (!timer_pending(&q->timeout) || (diff >= HZ / 2))
164 mod_timer(&q->timeout, expiry);