From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx145.postini.com [74.125.245.145]) by kanga.kvack.org (Postfix) with SMTP id 78A2E6B002B for ; Mon, 17 Dec 2012 04:52:38 -0500 (EST) Received: by mail-bk0-f41.google.com with SMTP id jg9so2794069bkc.14 for ; Mon, 17 Dec 2012 01:52:36 -0800 (PST) Date: Mon, 17 Dec 2012 10:52:31 +0100 From: Ingo Molnar Subject: Re: [PATCH v2] mm: Downgrade mmap_sem before locking or populating on mmap Message-ID: <20121217095231.GA1134@gmail.com> References: <3b624af48f4ba4affd78466b73b6afe0e2f66549.1355463438.git.luto@amacapital.net> <2e91ea19fbd30fa17718cb293473ae207ee8fd0f.1355536006.git.luto@amacapital.net> <20121216090026.GB21690@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Al Viro , Michel Lespinasse , Hugh Dickins , J??rn Engel , Linus Torvalds * Andy Lutomirski 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org