[Question] Is that safe if a modules get_task_mm for a very long time?

From: Hui Zhu
Date: Sat Apr 28 2012 - 09:33:14 EST


Hi,

I check the kernel code found that a lot get_task_mm is use together
with an mmput for a long time.
Do you think I can just an get_task_mm inside a function and use mmput
to release for a long time later?

Thanks,
Hui
--
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/