Don't leave the device queue in a frozen state if the Synchronize Cache

command on close fails.
This commit is contained in:
Justin T. Gibbs 1998-09-19 04:59:35 +00:00
parent c17109adb1
commit 9eec0f7d5a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39477

View File

@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: scsi_da.c,v 1.2 1998/09/16 23:30:11 ken Exp $
* $Id: scsi_da.c,v 1.3 1998/09/18 22:33:59 ken Exp $
*/
#include <sys/param.h>
@ -365,6 +365,13 @@ daclose(dev_t dev, int flag, int fmt, struct proc *p)
xpt_release_ccb(ccb);
if ((ccb->ccb_h.status & CAM_DEV_QFRZN) != 0)
cam_release_devq(ccb->ccb_h.path,
/*relsim_flags*/0,
/*reduction*/0,
/*timeout*/0,
/*getcount_only*/0);
if ((softc->flags & DA_FLAG_PACK_REMOVABLE) != 0) {
daprevent(periph, PR_ALLOW);
/*