Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153251873
D12350.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12350.diff
View Options
Index: head/sys/cam/cam_iosched.c
===================================================================
--- head/sys/cam/cam_iosched.c
+++ head/sys/cam/cam_iosched.c
@@ -533,7 +533,7 @@
sbintime_t now, delta;
int pending;
- callout_reset(&isc->ticker, hz / isc->quanta - 1, cam_iosched_ticker, isc);
+ callout_reset(&isc->ticker, hz / isc->quanta, cam_iosched_ticker, isc);
now = sbinuptime();
delta = now - isc->last_time;
@@ -798,7 +798,7 @@
return error;
}
/* Note: disk load averate requires ticker to be always running */
- callout_reset(&isc->ticker, hz / isc->quanta - 1, cam_iosched_ticker, isc);
+ callout_reset(&isc->ticker, hz / isc->quanta, cam_iosched_ticker, isc);
isc->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE;
cam_periph_unlock(isc->periph);
@@ -1055,7 +1055,7 @@
callout_init_mtx(&(*iscp)->ticker, cam_periph_mtx(periph), 0);
(*iscp)->periph = periph;
cam_iosched_cl_init(&(*iscp)->cl, *iscp);
- callout_reset(&(*iscp)->ticker, hz / (*iscp)->quanta - 1, cam_iosched_ticker, *iscp);
+ callout_reset(&(*iscp)->ticker, hz / (*iscp)->quanta, cam_iosched_ticker, *iscp);
(*iscp)->flags |= CAM_IOSCHED_FLAG_CALLOUT_ACTIVE;
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 2:03 AM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31879253
Default Alt Text
D12350.diff (1 KB)
Attached To
Mode
D12350: cam iosched: Schedule cam_iosched_ticker() quanta times per second
Attached
Detach File
Event Timeline
Log In to Comment