Commit 700d54fb authored by Claes Sjofors's avatar Claes Sjofors

Cycle sup delay for action Stop I/O bugfix

parent 45074177
...@@ -167,8 +167,10 @@ csup_Exec ( ...@@ -167,8 +167,10 @@ csup_Exec (
else { else {
/* Not owner, check stall delay */ /* Not owner, check stall delay */
if ( o->DelayAction == 2) { if ( o->DelayAction == 2) {
if (time_Dcomp(&o->NextLimit, NULL) > 0 && nextLimit.tv_nsec = o->NextLimit.tv_nsec;
time_Dcomp(stop, &o->NextLimit) > 0) { nextLimit.tv_sec = o->NextLimit.tv_sec;
if (time_Dcomp(&nextLimit, NULL) > 0 &&
time_Dcomp(stop, &nextLimit) > 0) {
o->DelayCount++; o->DelayCount++;
o->LastDelay = *now; o->LastDelay = *now;
action = MAX(action, o->DelayAction); action = MAX(action, o->DelayAction);
...@@ -197,4 +199,4 @@ csup_Exit ( ...@@ -197,4 +199,4 @@ csup_Exit (
free(cp); free(cp);
} }
free(lh); free(lh);
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment