svn commit: r354849 - head/sys/dev/hyperv/storvsc
Andriy Gapon
avg at FreeBSD.org
Tue Nov 19 07:21:00 UTC 2019
Author: avg
Date: Tue Nov 19 07:20:59 2019
New Revision: 354849
URL: https://svnweb.freebsd.org/changeset/base/354849
Log:
hyperv/storvsc: stash a pointer to hv_storvsc_request in ccb
A SIM-private field is used for that.
The pointer can be useful when examining a state of a queued ccb.
E.g., a ccb on a da_softc.pending_ccbs.
MFC after: 2 weeks
Modified:
head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Tue Nov 19 07:19:33 2019 (r354848)
+++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Tue Nov 19 07:20:59 2019 (r354849)
@@ -1915,6 +1915,7 @@ create_storvsc_request(union ccb *ccb, struct hv_storv
reqp->sense_info_len = csio->sense_len;
reqp->ccb = ccb;
+ ccb->ccb_h.spriv_ptr0 = reqp;
if (0 == csio->dxfer_len) {
return (0);
More information about the svn-src-head
mailing list