Permalink
Browse files

Add xpt_release_ccb()'s missed at r248872. That made `shutdown -p` stuck

on controller with small number of queue slots and several disks connected.
  • Loading branch information...
1 parent c8fe315 commit 57bb8435b3216ec811e89fbf9e461582bde10c46 @amotin amotin committed Apr 3, 2013
Showing with 3 additions and 0 deletions.
  1. +2 −0 sys/cam/ata/ata_da.c
  2. +1 −0 sys/cam/scsi/scsi_da.c
View
@@ -1886,6 +1886,7 @@ adaflush(void)
softc->disk->d_devstat);
if (error != 0)
xpt_print(periph->path, "Synchronize cache failed\n");
+ xpt_release_ccb(ccb);
cam_periph_unlock(periph);
}
}
@@ -1931,6 +1932,7 @@ adaspindown(uint8_t cmd, int flags)
softc->disk->d_devstat);
if (error != 0)
xpt_print(periph->path, "Spin-down disk failed\n");
+ xpt_release_ccb(ccb);
cam_periph_unlock(periph);
}
}
View
@@ -2897,6 +2897,7 @@ dashutdown(void * arg, int howto)
softc->disk->d_devstat);
if (error != 0)
xpt_print(periph->path, "Synchronize cache failed\n");
+ xpt_release_ccb(ccb);
cam_periph_unlock(periph);
}
}

0 comments on commit 57bb843

Please sign in to comment.