mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 15:24:40 -05:00
Increase the timeout to be 3*hz. This recalibrates the timeout so that
it has the same value on all platforms. Previously it was just under 3 seconds on x86 (typically hz<=128) and just under 1/3 of a second on alpha (typically hz>=1024). This covers up a race between ad_interrupt() and ad_timeout() which is being looked into. reviewd by: sos
This commit is contained in:
parent
8342096f29
commit
ca4e37e1cf
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ ad_transfer(struct ad_request *request)
|
|||
if (request->donecount == 0) {
|
||||
|
||||
/* start timeout for this transfer */
|
||||
request->timeout_handle = timeout((timeout_t*)ad_timeout, request, 300);
|
||||
request->timeout_handle = timeout((timeout_t*)ad_timeout, request, 3*hz);
|
||||
|
||||
/* setup transfer parameters */
|
||||
count = howmany(request->bytecount, DEV_BSIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue