From 3ce4cf6c634f415b2c1fd222f000fb5d5fcb0696 Mon Sep 17 00:00:00 2001 From: jimharris Date: Mon, 27 Aug 2012 18:14:22 +0000 Subject: [PATCH] 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) git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/isci/isci_remote_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isci/isci_remote_device.c b/sys/dev/isci/isci_remote_device.c index 31fcbfb7..b359287a 100644 --- a/sys/dev/isci/isci_remote_device.c +++ b/sys/dev/isci/isci_remote_device.c @@ -278,12 +278,12 @@ isci_remote_device_release_lun_queue(struct ISCI_REMOTE_DEVICE *remote_device, 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); } } -- 2.42.0