svn commit: r358966 - head/sys/cam

Warner Losh imp at FreeBSD.org
Fri Mar 13 18:45:37 UTC 2020


Author: imp
Date: Fri Mar 13 18:45:36 2020
New Revision: 358966
URL: https://svnweb.freebsd.org/changeset/base/358966

Log:
  Give some indication of the CCB that's in flight when we panic.
  
  Print the pointer to ccb so we can find it (for what good it does)
  as well as the type of operation in flight when the cam_path has
  been freed out from under us. This helps both core analysis as well
  as automated systems that collect panic strings but little else.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Fri Mar 13 18:38:28 2020	(r358965)
+++ head/sys/cam/cam_xpt.c	Fri Mar 13 18:45:36 2020	(r358966)
@@ -5435,7 +5435,8 @@ xpt_done_process(struct ccb_hdr *ccb_h)
 
 		if (sim)
 			devq = sim->devq;
-		KASSERT(devq, ("Periph disappeared with request pending."));
+		KASSERT(devq, ("Periph disappeared with CCB %p %s request pending.",
+			ccb_h, xpt_action_name(ccb_h->func_code)));
 
 		mtx_lock(&devq->send_mtx);
 		devq->send_active--;


More information about the svn-src-head mailing list