Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 08:54:28 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364906 - stable/12/sys/cam
Message-ID:  <202008280854.07S8sSBC073668@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Aug 28 08:54:27 2020
New Revision: 364906
URL: https://svnweb.freebsd.org/changeset/base/364906

Log:
  MFC r358662 by imp: xpt_async is submitting a CCB, not finishing it up,
  
  so use xpt_action() instead of xpt_done().

Modified:
  stable/12/sys/cam/cam_xpt.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/cam/cam_xpt.c
==============================================================================
--- stable/12/sys/cam/cam_xpt.c	Fri Aug 28 08:52:00 2020	(r364905)
+++ stable/12/sys/cam/cam_xpt.c	Fri Aug 28 08:54:27 2020	(r364906)
@@ -3171,6 +3171,10 @@ call_sim:
 		start_ccb->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(start_ccb);
 		break;
+	case XPT_ASYNC:
+		start_ccb->ccb_h.status = CAM_REQ_CMP;
+		xpt_done(start_ccb);
+		break;
 	default:
 	case XPT_SDEV_TYPE:
 	case XPT_TERM_IO:
@@ -4462,7 +4466,7 @@ xpt_async(u_int32_t async_code, struct cam_path *path,
 		xpt_freeze_devq(path, 1);
 	else
 		xpt_freeze_simq(path->bus->sim, 1);
-	xpt_done(ccb);
+	xpt_action(ccb);
 }
 
 static void



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