Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106928741
D6101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
D6101.diff
View Options
Index: head/sys/dev/mpr/mpr_sas.c
===================================================================
--- head/sys/dev/mpr/mpr_sas.c
+++ head/sys/dev/mpr/mpr_sas.c
@@ -1929,8 +1929,13 @@
cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle);
}
+#if __FreeBSD_version >= 1000029
callout_reset_sbt(&cm->cm_callout, SBT_1MS * ccb->ccb_h.timeout, 0,
mprsas_scsiio_timeout, cm, 0);
+#else //__FreeBSD_version < 1000029
+ callout_reset(&cm->cm_callout, (ccb->ccb_h.timeout * hz) / 1000,
+ mprsas_scsiio_timeout, cm);
+#endif //__FreeBSD_version >= 1000029
targ->issued++;
targ->outstanding++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 2:58 PM (33 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15723478
Default Alt Text
D6101.diff (611 B)
Attached To
Mode
D6101: Use callout_reset_sbt() instead of callout_reset() only if FreeBSD version is at least 1100048.
Attached
Detach File
Event Timeline
Log In to Comment