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

Andrew Donnellan andrew.donnellan at au1.ibm.com
Mon Mar 20 13:09:32 AEDT 2017


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("%s: unable to get mm for pe=%d pid=%i\n",
>>>                   __func__, ctx->pe, pid_nr(ctx->pid));
>>
>> Is there still a case where mm can equal NULL?
> Yes. The context may be in the process of being closed.

But where does ctx->mm get reset to NULL? I've had a cursory look and 
can't see it.


-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Linuxppc-dev mailing list