Dont re-arm the timeout twice on a timeout error.
The problem with the first timeout still exsists though, but not it doesn't enter a groundbound spin loop :) Found by: Aaron Smith <aaron@mutex.org>
This commit is contained in:
parent
bf10d4f8c4
commit
6e9e1e9753
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119874
@ -316,11 +316,6 @@ pst_timeout(struct pst_request *request)
|
||||
mtx_unlock(&request->psc->iop->mtx);
|
||||
return;
|
||||
}
|
||||
if (dumping)
|
||||
request->timeout_handle.callout = NULL;
|
||||
else
|
||||
request->timeout_handle =
|
||||
timeout((timeout_t*)pst_timeout, request, 10 * hz);
|
||||
if (pst_rw(request)) {
|
||||
iop_free_mfa(request->psc->iop, request->mfa);
|
||||
biofinish(request->bp, NULL, EIO);
|
||||
|
Loading…
Reference in New Issue
Block a user