From 7defd7582ecd3a80fb7b80bd0c8799a94802f2b5 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 13 Mar 2020 18:45:36 +0000 Subject: [PATCH] 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. --- sys/cam/cam_xpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 8c52605a013..bc7813f4a9b 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -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--;