/* Run through the list of completed requests and finish it  */
static void mega_rundoneq(adapter_t *adapter)
/* Run through the list of completed requests and finish it  */
static void mega_rundoneq(adapter_t *adapter)
{
	Scsi_Cmnd *cmd;
	struct list_head *pos;
	list_for_each(pos, &adapter->completed_list) {
		struct scsi_pointer* spos = (struct scsi_pointer *)pos;
		cmd = list_entry(spos, Scsi_Cmnd, SCp);
		cmd->scsi_done(cmd);
	}
	INIT_LIST_HEAD(&adapter->completed_list);
}