/* Unmaps the DMAs of a command and moves the command to the completed ORB list. Must be called with lu->cmd_orb_lock held.  */
static void sbp2util_mark_command_completed(struct sbp2_lu *lu, struct sbp2_command_info *cmd)
/* Unmaps the DMAs of a command and moves the command to the completed ORB list. Must be called with lu->cmd_orb_lock held.  */
static void sbp2util_mark_command_completed(struct sbp2_lu *lu, struct sbp2_command_info *cmd)
{
	if (scsi_sg_count(cmd->Current_SCpnt))
		dma_unmap_sg(lu->ud->ne->host->device.parent,
			     scsi_sglist(cmd->Current_SCpnt),
			     scsi_sg_count(cmd->Current_SCpnt),
			     cmd->Current_SCpnt->sc_data_direction);
	list_move_tail(&cmd->list, &lu->cmd_orb_completed);
}