Decrease poll interval from 1000 to 100us. This significantly reduces
kernel dump time, especially with minidump.
This commit is contained in:
parent
12d455a6b1
commit
0069293b2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212991
@ -2914,7 +2914,7 @@ xpt_polled_action(union ccb *start_ccb)
|
||||
struct cam_ed *dev;
|
||||
|
||||
|
||||
timeout = start_ccb->ccb_h.timeout;
|
||||
timeout = start_ccb->ccb_h.timeout * 10;
|
||||
sim = start_ccb->ccb_h.path->bus->sim;
|
||||
devq = sim->devq;
|
||||
dev = start_ccb->ccb_h.path->device;
|
||||
@ -2930,7 +2930,7 @@ xpt_polled_action(union ccb *start_ccb)
|
||||
|
||||
while(((devq != NULL && devq->send_openings <= 0) ||
|
||||
dev->ccbq.dev_openings < 0) && (--timeout > 0)) {
|
||||
DELAY(1000);
|
||||
DELAY(100);
|
||||
(*(sim->sim_poll))(sim);
|
||||
camisr_runqueue(&sim->sim_doneq);
|
||||
}
|
||||
@ -2946,7 +2946,7 @@ xpt_polled_action(union ccb *start_ccb)
|
||||
if ((start_ccb->ccb_h.status & CAM_STATUS_MASK)
|
||||
!= CAM_REQ_INPROG)
|
||||
break;
|
||||
DELAY(1000);
|
||||
DELAY(100);
|
||||
}
|
||||
if (timeout == 0) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user