[PATCH v5 1/2] powerpc/powernv: Enable tunneled operations

Frederic Barrat fbarrat at linux.vnet.ibm.com
Tue Jan 9 03:33:20 AEDT 2018



Le 22/12/2017 à 13:36, Philippe Bergheaud a écrit :
> +#ifdef CONFIG_PPC64	/* for thread.tidr */
> +int pnv_pci_get_as_notify_info(struct task_struct *task, u32 *lpid, u32 *pid,
> +			       u32 *tid)
> +{
> +	struct mm_struct *mm = NULL;
> +
> +	if (task == NULL)
> +		return -EINVAL;
> +
> +	mm = get_task_mm(task);
> +	if (mm == NULL)
> +		return -EINVAL;
> +	/*
> +	 * Caller is keeping a reference on mm_users for as long
> +	 * as XSL uses the memory context
> +	 */


That comment needs to be tweaked for pci mode. There's no XSL in play.

  Fred

> +	*pid = mm->context.id;
> +	mmput(mm);



More information about the Linuxppc-dev mailing list