Re: [PATCH v2] mm: Downgrade mmap_sem before locking or populatingon mmap

From: Ingo Molnar
Date: Mon Dec 17 2012 - 04:53:06 EST



* Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:

> > 2)
> >
> > More aggressively, we could just make it the _rule_ that the
> > mm lock gets downgraded to read in mmap_region_helper(), no
> > matter what.
> >
> > From a quick look I *think* all the usage sites (including
> > sys_aio_setup()) are fine with that unlocking - but I could
> > be wrong.
>
> They are.

Lets try that then - the ugliness of the current patch is
certainly a problem.

Thanks,

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