From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932153AbcEBTON (ORCPT ); Mon, 2 May 2016 15:14:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49038 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754672AbcEBTOH (ORCPT ); Mon, 2 May 2016 15:14:07 -0400 Date: Mon, 2 May 2016 21:14:04 +0200 From: Andrea Arcangeli To: "Kirill A. Shutemov" Cc: Jerome Glisse , Oleg Nesterov , Hugh Dickins , Linus Torvalds , Andrew Morton , Alex Williamson , kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, "linux-mm@kvack.org" Subject: Re: GUP guarantees wrt to userspace mappings Message-ID: <20160502191404.GF12310@redhat.com> References: <20160428204542.5f2053f7@ul30vt.home> <20160429070611.GA4990@node.shutemov.name> <20160429163444.GM11700@redhat.com> <20160502104119.GA23305@node.shutemov.name> <20160502111513.GA4079@gmail.com> <20160502121402.GB23305@node.shutemov.name> <20160502133919.GB4079@gmail.com> <20160502150013.GA24419@node.shutemov.name> <20160502152249.GA5827@gmail.com> <20160502161252.GE24419@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160502161252.GE24419@node.shutemov.name> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 02, 2016 at 07:12:52PM +0300, Kirill A. Shutemov wrote: > Any reason why mmu_notifier is not an option? No way to trigger an hardware re-tried secondary MMU fault as result of PCI DMA memory access, and expensive to do an MMU notifier invalidate if it requires waiting for the DMA to complete (but since MMU notifier is now sleepable the latter is a secondary concern).