Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757390AbbKRXu3 (ORCPT ); Wed, 18 Nov 2015 18:50:29 -0500 Received: from e06smtp08.uk.ibm.com ([195.75.94.104]:58394 "EHLO e06smtp08.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757349AbbKRXuF (ORCPT ); Wed, 18 Nov 2015 18:50:05 -0500 X-IBM-Helo: d06dlp03.portsmouth.uk.ibm.com X-IBM-MailFrom: dingel@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-s390@vger.kernel.org From: Dominik Dingel To: linux-s390@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , "Kirill A. Shutemov" , Andrea Arcangeli , David Rientjes , Eric B Munson , Naoya Horiguchi , Mel Gorman , Martin Schwidefsky , Heiko Carstens , Dominik Dingel , Christian Borntraeger , Paolo Bonzini , "Jason J. Herne" , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Allow gmap fault to retry Date: Thu, 19 Nov 2015 00:49:56 +0100 Message-Id: <1447890598-56860-1-git-send-email-dingel@linux.vnet.ibm.com> X-Mailer: git-send-email 2.3.9 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15111823-0033-0000-0000-000004D197E2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 999 Lines: 30 Hello, during Jasons work with postcopy migration support for s390 a problem regarding gmap faults was discovered. The gmap code will call fixup_userfault which will end up always in handle_mm_fault. Till now we never cared about retries, but as the userfaultfd code kind of relies on it, this needed some fix. This patchset includes the retry logic fory gmap fault scenarios, as well as passing back VM_FAULT_RETRY from fixup_userfault. Thanks, Dominik Dominik Dingel (2): mm: fixup_userfault returns VM_FAULT_RETRY if asked s390/mm: allow gmap code to retry on faulting in guest memory arch/s390/mm/pgtable.c | 28 ++++++++++++++++++++++++---- mm/gup.c | 2 ++ 2 files changed, 26 insertions(+), 4 deletions(-) -- 2.3.9 -- 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/