Thread (1 message) 1 message, 1 author, 2017-03-20

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

From: Andrew Donnellan <hidden>
Date: 2017-03-20 02:10:40

On 07/03/17 21:57, christophe lombard wrote:
quoted
quoted
@@ -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@au1.ibm.com  IBM Australia Limited
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help