Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2019 17:36:42 +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: r354620 - head/sys/cam/scsi
Message-ID:  <201911111736.xABHagOD098935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Mon Nov 11 17:36:42 2019
New Revision: 354620
URL: https://svnweb.freebsd.org/changeset/base/354620

Log:
  Fix panic message to indicate right action that was improper.
  
  Reviewed by: scottl, ken
  Differential Revision: https://reviews.freebsd.org/D22295

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Mon Nov 11 17:11:49 2019	(r354619)
+++ head/sys/cam/scsi/scsi_da.c	Mon Nov 11 17:36:42 2019	(r354620)
@@ -1686,7 +1686,7 @@ da_periph_release_locked(struct cam_periph *periph, da
 	    da_ref_text[token], token);
 	cnt = atomic_fetchadd_int(&softc->ref_flags[token], -1);
 	if (cnt != 1)
-		panic("Unholding %d with cnt = %d", token, cnt);
+		panic("releasing (locked) %d with cnt = %d", token, cnt);
 	cam_periph_release_locked(periph);
 }
 



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