From 97d8f008afe15fbde2f1b59bd4cbddf5c22d90b3 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Tue, 19 Nov 2019 07:20:59 +0000 Subject: [PATCH] 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 --- sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 1 + 1 file changed, 1 insertion(+) 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);