Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754441Ab0BKMnW (ORCPT ); Thu, 11 Feb 2010 07:43:22 -0500 Received: from hera.kernel.org ([140.211.167.34]:56738 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952Ab0BKMnV (ORCPT ); Thu, 11 Feb 2010 07:43:21 -0500 Message-ID: <4B73FCF2.3020108@kernel.org> Date: Thu, 11 Feb 2010 21:49:54 +0900 From: Tejun Heo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-1.1.1 Thunderbird/3.0 MIME-Version: 1.0 To: Miklos Szeredi CC: mszeredi@suse.cz, linux-kernel@vger.kernel.org, fuse-devel@lists.sourceforge.net, polynomial-c@gentoo.org, akpm@linux-foundation.org Subject: Re: [fuse-devel] [PATCH] FUSE/CUSE: implement direct mmap support References: <4B70FBE4.7050700@kernel.org> <4B7296DF.207@kernel.org> <4B729F07.8020704@kernel.org> <4B72A802.6040009@kernel.org> <4B7344A4.1030607@kernel.org> <4B73F006.7090706@kernel.org> In-Reply-To: X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (hera.kernel.org [127.0.0.1]); Thu, 11 Feb 2010 12:42:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 26 Hello, Miklos. On 02/11/2010 09:25 PM, Miklos Szeredi wrote: >> If the server wants the two regions to be separate, it can map it to >> say 5-11 and returnt he offset of 5. If it wants them to be shared, >> it will have to mmap 1-2 and 6-7 and return offset of 1. > > What if region 6-7 is already occupied (e.g. because a separate region > was put there)? Allocating and managing the address space ranges are the server's responsibility. If it expects the region to grow, it shouldn't colocate those regions. The kernel is just giving the server an address space to manage and letting it redirect mmaps to arbitrary (sans the SHMLBA alignment restriction) part of it. The rest is upto the server. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/