Re: [openib-general] Re: madvise MADV_DONTFORK/MADV_DOFORK

From: Hugh Dickins
Date: Mon Feb 13 2006 - 14:47:59 EST


On Mon, 13 Feb 2006, Linus Torvalds wrote:
>
> and the usage ends up matching that (except for some really strange issue
> with hugepage counting, which just looks wrong, but never mind).

Yes, I cc'ed wli on my reply to Michael,
we're hoping he'll just say delete that block.

> I can see where Hugh is coming from, but I think it's adding cruft very
> much for a "be very careful" reason.
>
> I would suggest that if you wanted to be very careful, you'd simply
> disallow changing - or perhaps just clearing - that DONTCOPY flag on
> special regions (ie ones that have been marked with VM_IO or VM_RESERVED).

Fair enough, disallow clearing on VM_IO (VM_RESERVED is on its way out,
does little more than perpetuate a few accounting anomalies I think).
So no new VM_DONTFORK flag, stick with VM_DONTCOPY: that's fine with me.

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