/* Gather affected IO requests and task management commands.  */
static void bfa_tskim_cleanup_ios(struct bfa_tskim_s *tskim)
/* Gather affected IO requests and task management commands.  */
static void bfa_tskim_cleanup_ios(struct bfa_tskim_s *tskim)
{
	struct bfa_ioim_s *ioim;
	struct list_head        *qe, *qen;
	bfa_wc_init(&tskim->wc, bfa_tskim_cleanp_comp, tskim);
	list_for_each_safe(qe, qen, &tskim->io_q) {
		ioim = (struct bfa_ioim_s *) qe;
		bfa_wc_up(&tskim->wc);
		bfa_ioim_cleanup_tm(ioim, tskim);
	}
	bfa_wc_wait(&tskim->wc);
}