From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 26 Feb 2003 11:03:53 -0800 From: "Martin J. Bligh" Subject: Re: Silly question: How to map a user space page in kernel space? Message-ID: <900000.1046286232@[10.10.2.4]> In-Reply-To: <20030226003334.7e85d5b2.akpm@digeo.com> References: <9860000.1046238956@[10.10.2.4]> <20030226003334.7e85d5b2.akpm@digeo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: inaky.perez-gonzalez@intel.com, linux-mm@kvack.org List-ID: >> But be aware that pagefaulting inside kmap_atomic is bad - you can get >> blocked and rescheduled, so touching user pages, etc is dangerous. > > That's true in 2.4. In 2.5 a copy_foo_user() inside kmap_atomic() > will just return a short copy while remaining atomic. > > See mm/filemap.c:filemap_copy_from_user() Cool - I didn't realise you fixed that up so generically - very nice. M. -- 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: aart@kvack.org