Re: [PATCH 5/4] update ksm userspace interfaces

From: Chris Wright
Date: Fri Apr 03 2009 - 12:22:54 EST


* Gerd Hoffmann (kraxel@xxxxxxxxxx) wrote:
> mmput() call was in ->release() callback, ->release() in turn never was
> called because the kernel didn't zap the mappings because of the
> reference ...

Don't have this issue. That mmput() is not tied to zapping mappings,
rather zapping files. IOW, I think you're saying exit_mmap() wasn't
running due to your get_task_mm() (quite understandable, you still hold
a ref), whereas this ref is tied to exit_files().

So do_exit would do:

exit_mm
mmput <-- not dropped yet
exit_files
->release
mmput <-- dropped here

thanks,
-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/