/* mpt_clear_taskmgmt_in_progress_flag - clear flags associated with task management @ioc: Pointer to MPT_ADAPTER structure  */
void mpt_clear_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc)
/* mpt_clear_taskmgmt_in_progress_flag - clear flags associated with task management @ioc: Pointer to MPT_ADAPTER structure  */
void mpt_clear_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc)
{
	unsigned long	 flags;
	spin_lock_irqsave(&ioc->taskmgmt_lock, flags);
	ioc->taskmgmt_in_progress = 0;
	ioc->taskmgmt_quiesce_io = 0;
	if (ioc->alt_ioc) {
		ioc->alt_ioc->taskmgmt_in_progress = 0;
		ioc->alt_ioc->taskmgmt_quiesce_io = 0;
	}
	spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags);
}