Release devq before detach.

This commit is contained in:
Hidetoshi Shimokawa 2003-04-30 10:32:32 +00:00
parent 6c688436bb
commit 98465499f8

View File

@ -1982,6 +1982,9 @@ END_DEBUG
if (sdev->status == SBP_DEV_RESET)
continue;
if (sdev->path) {
xpt_release_devq(sdev->path,
sdev->freeze, TRUE);
sdev->freeze = 0;
xpt_async(AC_LOST_DEVICE, sdev->path, NULL);
xpt_free_path(sdev->path);
sdev->path = NULL;