Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 00:14:15 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257482 - head/sys/cam
Message-ID:  <201311010014.rA10EFDs027888@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Nov  1 00:14:15 2013
New Revision: 257482
URL: http://svnweb.freebsd.org/changeset/base/257482

Log:
  Fix lock recursion, triggered by `smartctl -a /dev/adaX`.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Thu Oct 31 23:58:31 2013	(r257481)
+++ head/sys/cam/cam_xpt.c	Fri Nov  1 00:14:15 2013	(r257482)
@@ -2200,7 +2200,7 @@ xptperiphtraverse(struct cam_ed *device,
 	for (; periph != NULL; periph = next_periph) {
 		retval = tr_func(periph, arg);
 		if (retval == 0) {
-			cam_periph_release(periph);
+			cam_periph_release_locked(periph);
 			break;
 		}
 		xpt_lock_buses();



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