/* Finds the sbp2_command for a given outstanding SCpnt. Only looks at the in-use list. Must be called with lu->cmd_orb_lock held.  */
static struct sbp2_command_info* sbp2util_find_command_for_SCpnt(struct sbp2_lu *lu, void *SCpnt)
/* Finds the sbp2_command for a given outstanding SCpnt. Only looks at the in-use list. Must be called with lu->cmd_orb_lock held.  */
static struct sbp2_command_info* sbp2util_find_command_for_SCpnt(struct sbp2_lu *lu, void *SCpnt)
{
	struct sbp2_command_info *cmd;
	if (!list_empty(&lu->cmd_orb_inuse))
		list_for_each_entry(cmd, &lu->cmd_orb_inuse, list)
			if (cmd->Current_SCpnt == SCpnt)
				return cmd;
	return NULL;
}