From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79B04C432BE for ; Fri, 23 Jul 2021 20:58:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 514FD60720 for ; Fri, 23 Jul 2021 20:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbhGWUSU (ORCPT ); Fri, 23 Jul 2021 16:18:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:55962 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhGWUST (ORCPT ); Fri, 23 Jul 2021 16:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627073932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/nhpAW6DhddRuT8w8zINHZDUaJ16Ga0NWcS3sD7FPLI=; b=i3YU6OEQ3NvSg56KoUJJ8QdGQzjciuigSTtilD+ugL1V+1jYyEoJDGxaenl8ynnCosFzRF vZH00/mjm4IVxkk990kiGoDB9Dp0TbUbBwBsQf9yAb0eqGRidEYW9VRRqkWaQhpKTOnQYD U/tv+S7epxa8KaG74lfyGd8WSw/hNeo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-325-_DZBFc4uPuKedgN0ZWTt4w-1; Fri, 23 Jul 2021 16:58:50 -0400 X-MC-Unique: _DZBFc4uPuKedgN0ZWTt4w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C62CA3639F; Fri, 23 Jul 2021 20:58:48 +0000 (UTC) Received: from max.com (unknown [10.40.194.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9FB8C100238C; Fri, 23 Jul 2021 20:58:42 +0000 (UTC) From: Andreas Gruenbacher To: Linus Torvalds , Alexander Viro , Christoph Hellwig , "Darrick J. Wong" Cc: Jan Kara , Matthew Wilcox , cluster-devel@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com, Andreas Gruenbacher Subject: [PATCH v3 0/7] gfs2: Fix mmap + page fault deadlocks Date: Fri, 23 Jul 2021 22:58:33 +0200 Message-Id: <20210723205840.299280-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus et al., here's an update of my gfs2 mmap + page fault fixes (against -rc2). >From my point of view, * these two are ready and need to be looked at by Al: iov_iter: Introduce fault_in_iov_iter helper iov_iter: Introduce noio flag to disable page faults * these two need to be reviewed by Christoph at least: iomap: Fix iomap_dio_rw return value for user copies iomap: Support restarting direct I/O requests after user copy failures Thanks a lot, Andreas Andreas Gruenbacher (7): iov_iter: Introduce fault_in_iov_iter helper gfs2: Add wrapper for iomap_file_buffered_write gfs2: Fix mmap + page fault deadlocks for buffered I/O iomap: Fix iomap_dio_rw return value for user copies iomap: Support restarting direct I/O requests after user copy failures iov_iter: Introduce noio flag to disable page faults gfs2: Fix mmap + page fault deadlocks for direct I/O fs/gfs2/file.c | 77 ++++++++++++++++++++++++++++++++++++++++---- fs/iomap/direct-io.c | 13 ++++++-- include/linux/mm.h | 3 ++ include/linux/uio.h | 2 ++ lib/iov_iter.c | 62 ++++++++++++++++++++++++++++++++--- mm/gup.c | 68 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 211 insertions(+), 14 deletions(-) -- 2.26.3