Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbbKZR1e (ORCPT ); Thu, 26 Nov 2015 12:27:34 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:38264 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751065AbbKZR1b (ORCPT ); Thu, 26 Nov 2015 12:27:31 -0500 X-IBM-Helo: d06dlp01.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: "Kirill A. Shutemov" , Andrea Arcangeli , Martin Schwidefsky , Christian Borntraeger , "Jason J. Herne" , linux-s390@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , David Rientjes , Eric B Munson , Naoya Horiguchi , Mel Gorman , Heiko Carstens , Dominik Dingel , Paolo Bonzini , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Allow gmap fault to retry Date: Thu, 26 Nov 2015 18:27:00 +0100 Message-Id: <1448558822-41358-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: 15112617-0013-0000-0000-000007C727E5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 35 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 needs some fix. Thanks, Dominik v1 -> v2: - Instead of passing the VM_FAULT_RETRY from fixup_user_fault we do retries within fixup_user_fault, like get_user_pages_locked do. - gmap code will now take retry if fixup_user_fault drops the lock Dominik Dingel (2): mm: bring in additional flag for fixup_user_fault to signal unlock s390/mm: enable fixup_user_fault retrying arch/s390/mm/pgtable.c | 31 ++++++++++++++++++++++++++++--- include/linux/mm.h | 5 +++-- kernel/futex.c | 2 +- mm/gup.c | 25 +++++++++++++++++++++---- 4 files changed, 53 insertions(+), 10 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/