mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 08:37:50 -04:00
Don't leave the device queue in a frozen state if the Synchronize Cache
command on close fails.
This commit is contained in:
parent
c17109adb1
commit
9eec0f7d5a
1 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue