Re: [PATCH 3/7] cxl: Keep track of mm struct associated with a context

2017-03-19 Thread Andrew Donnellan
On 07/03/17 21:57, christophe lombard wrote: @@ -281,7 +212,6 @@ void cxl_handle_fault(struct work_struct *fault_work) if (!ctx->kernel) { mm = get_mem_context(ctx); -/* indicates all the thread in task group have exited */ if (mm == NULL) { pr_devel("

Re: [PATCH 3/7] cxl: Keep track of mm struct associated with a context

2017-02-27 Thread Andrew Donnellan
On 02/02/17 04:30, Christophe Lombard wrote: The mm_struct corresponding to the current task is acquired each time an interrupt is raised. So to simplify the code, we only get the mm_struct when attaching an AFU context to the process. The mm_count reference is increased to ensure that the mm_str

[PATCH 3/7] cxl: Keep track of mm struct associated with a context

2017-02-01 Thread Christophe Lombard
The mm_struct corresponding to the current task is acquired each time an interrupt is raised. So to simplify the code, we only get the mm_struct when attaching an AFU context to the process. The mm_count reference is increased to ensure that the mm_struct can't be freed. The mm_struct will be relea