Date: Fri, 13 Mar 2020 18:45:36 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358966 - head/sys/cam Message-ID: <202003131845.02DIja9W093064@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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--;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003131845.02DIja9W093064>