mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use callout_reset_sbt() instead of callout_reset() if FreeBSD ver is >= 1000029
Reviewed by: ken, scottl, ambrisko, asomers Approved by: ken, scottl, ambrisko MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6101
This commit is contained in:
parent
dd9f4a95b2
commit
407073a044
1 changed files with 5 additions and 0 deletions
|
|
@ -1929,8 +1929,13 @@ mprsas_action_scsiio(struct mprsas_softc *sassc, union ccb *ccb)
|
|||
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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue