Re: [RFC] [PATCH 2.6.37-rc5-tip 8/20] 8: uprobes: mmap and forkhooks.

From: Peter Zijlstra
Date: Wed Jan 26 2011 - 10:16:44 EST


On Wed, 2011-01-26 at 20:29 +0530, Srikar Dronamraju wrote:
> list_for_each_entry_safe(mm, tmpmm, &tmp_list, uprobes_list) {
> down_read(&mm->map_sem);
> if (!install_uprobe(mm, uprobe))
> ret = 0;
> up_read(&mm->map_sem);
> list_del(&mm->uprobes_list);
> mmput(mm);
> }

and the tmp_list thing works because new mm's will hit the mmap callback
and you cannot loose mm's due to the refcount, right?


--
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/