[openib-general] Re: [PATCH] fork support

Roland Dreier rolandd at cisco.com
Mon Jul 18 17:12:15 PDT 2005


    Michael> Thanks! Would it be easier, or harder, if I post this at lkml?

Probably easier...

    Roland> - This patch allows userspace to remove VM_DONTCOPY from
    Roland> vmas even if the kernel set it.

    Michael> Well, we'll need it to deregister stuff, wont we?

Right -- I wasn't very clear about the problem.  It's fine for
userspace to remove the VM_DONTCOPY if it was set by userspace.  But
the kernel may have some reason for setting VM_DONTCOPY on a vma, and
may not want userspace be able to remove the flag.

    Michael> I went for simplicity. Do you think the above a good
    Michael> idea?

Yes.

    Michael> Most of it is duplication, but some architectures define
    Michael> PROT_ flags slightly differently. Easy to do ... let me
    Michael> know what do you think.

Probably a future cleanup on top of this.

 - R.



More information about the general mailing list