Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 57bb8435b3216ec811e89fbf9e461582bde10c46 1 parent c8fe315
@amotin amotin authored
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
2  sys/cam/ata/ata_da.c
@@ -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
1  sys/cam/scsi/scsi_da.c
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.