Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753979AbZIKGVh (ORCPT ); Fri, 11 Sep 2009 02:21:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753841AbZIKGVh (ORCPT ); Fri, 11 Sep 2009 02:21:37 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:39147 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752942AbZIKGVg (ORCPT ); Fri, 11 Sep 2009 02:21:36 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Brice Goglin Subject: Re: [GIT PULL] please pull ummunotify Cc: kosaki.motohiro@jp.fujitsu.com, Roland Dreier , torvalds@linux-foundation.org, akpm@linux-foundation.org, jsquyres@cisco.com, linux-rdma@vger.kernel.org, general@lists.openfabrics.org, linux-kernel@vger.kernel.org In-Reply-To: <4AA9EAF7.5010401@inria.fr> References: <4AA9EAF7.5010401@inria.fr> Message-Id: <20090911151930.DB6B.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Fri, 11 Sep 2009 15:21:35 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1231 Lines: 29 > Roland Dreier wrote: > > > Can I this version already solved fork() + COW issue? if so, could you > > > please explain what happen at fork. Obviously RDMA point to either parent > > > or child page, not both. but Corrent COW rule is, first touch process > > > get copyed page and other process still own original page. I think it's > > > unpecected behavior form RDMA. > > > > No, ummunotify doesn't really help that much with fork() + COW. If a > > parent forks and then touches pages that are actively in use for RDMA, > > then of course they get COWed and RDMA goes to the wrong memory (from > > the point of view of the parent). > > > > My understanding of the code is that fork will end-up calling > copy_page_range() on all VMA, and copy_page_range() calls > mmu_notifier_invalidate_range_start() if is_cow_mapping() is true, > which should be the case here. So you should get some invalidate events > on fork. Worried... Anybody haven't test fork() case yet??? -- 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/