Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2019 07:21:00 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354849 - head/sys/dev/hyperv/storvsc
Message-ID:  <201911190721.xAJ7L001099484@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911190721.xAJ7L001099484>