Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 18:14:22 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r239743 - releng/9.1/sys/dev/isci
Message-ID:  <201208271814.q7RIEMEh036592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Mon Aug 27 18:14:22 2012
New Revision: 239743
URL: http://svn.freebsd.org/changeset/base/239743

Log:
  MFC r239665:
  
    Clear freeze bit before calling xpt_release_devq.
  
    This ensures that any ccbs which immediately start during the call to
    xpt_release_devq see an accurate picture of the frozen_lun_mask.
  
  Sponsored by:	Intel
  Approved by:	re (kib)

Modified:
  releng/9.1/sys/dev/isci/isci_remote_device.c
Directory Properties:
  releng/9.1/sys/   (props changed)
  releng/9.1/sys/dev/   (props changed)

Modified: releng/9.1/sys/dev/isci/isci_remote_device.c
==============================================================================
--- releng/9.1/sys/dev/isci/isci_remote_device.c	Mon Aug 27 18:12:08 2012	(r239742)
+++ releng/9.1/sys/dev/isci/isci_remote_device.c	Mon Aug 27 18:14:22 2012	(r239743)
@@ -278,12 +278,12 @@ isci_remote_device_release_lun_queue(str
 	if (remote_device->frozen_lun_mask & (1 << lun)) {
 		struct cam_path *path;
 
+		remote_device->frozen_lun_mask &= ~(1 << lun);
 		xpt_create_path(&path, xpt_periph,
 		    cam_sim_path(remote_device->domain->controller->sim),
 		    remote_device->index, lun);
 		xpt_release_devq(path, 1, TRUE);
 		xpt_free_path(path);
-		remote_device->frozen_lun_mask &= ~(1 << lun);
 	}
 }
 



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