diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2019-11-19 07:20:59 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2019-11-19 07:20:59 +0000 |
commit | 97d8f008afe15fbde2f1b59bd4cbddf5c22d90b3 (patch) | |
tree | 398b8693ec7e1130d266fbb70c925231735c23f3 /sys/dev/hyperv | |
parent | 82e14014a3ac61a15ddc3f8d1a6f2855a538359a (diff) | |
download | src-97d8f008afe15fbde2f1b59bd4cbddf5c22d90b3.tar.gz src-97d8f008afe15fbde2f1b59bd4cbddf5c22d90b3.zip |
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
Notes
Notes:
svn path=/head/; revision=354849
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r-- | sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c index 0804b44c7df3..a29d9d59e6cb 100644 --- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c +++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c @@ -1915,6 +1915,7 @@ create_storvsc_request(union ccb *ccb, struct hv_storvsc_request *reqp) reqp->sense_info_len = csio->sense_len; reqp->ccb = ccb; + ccb->ccb_h.spriv_ptr0 = reqp; if (0 == csio->dxfer_len) { return (0); |