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=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 613CCC433DF for ; Tue, 7 Jul 2020 14:45:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 33A012073E for ; Tue, 7 Jul 2020 14:45:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Fwlkg7Hl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbgGGOpG (ORCPT ); Tue, 7 Jul 2020 10:45:06 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:27769 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727999AbgGGOpG (ORCPT ); Tue, 7 Jul 2020 10:45:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594133105; 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=IJiqzQ/kLsjLqSZqOf6MLpDjuwJtn20YFnJVp0WHDBY=; b=Fwlkg7Hl/7S1mIeyuGDrAUd9ZzkZYdfeaj2AcB5B4CZ3khFQ1uvVzMXrJ9mdn5IZMjaE0w 7AhtKznFtnu9BCpZNJ0gOSSWW3o+++htfRszBM5k8zT9uIkb1JwYWgl2SE8YQFLgnMWFiR De3yY4tp1txAM07Cme0Yl4X/9Ixucuo= 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-68-WfeCbwyUO864-hMheGu1Bw-1; Tue, 07 Jul 2020 10:45:03 -0400 X-MC-Unique: WfeCbwyUO864-hMheGu1Bw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C77838014D7; Tue, 7 Jul 2020 14:45:01 +0000 (UTC) Received: from max.home.com (unknown [10.40.192.179]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB6F2797E4; Tue, 7 Jul 2020 14:44:59 +0000 (UTC) From: Andreas Gruenbacher To: Linus Torvalds Cc: Matthew Wilcox , Dave Chinner , Jens Axboe , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andreas Gruenbacher Subject: [RFC v3 0/2] Fix gfs2 readahead deadlocks Date: Tue, 7 Jul 2020 16:44:55 +0200 Message-Id: <20200707144457.1603400-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org In the previous version, we could end up calling ->readpage without checking IOCB_NOIO. Andreas Gruenbacher (2): fs: Add IOCB_NOIO flag for generic_file_read_iter gfs2: Rework read and page fault locking fs/gfs2/aops.c | 45 +-------------------------------------- fs/gfs2/file.c | 52 ++++++++++++++++++++++++++++++++++++++++++++-- include/linux/fs.h | 1 + mm/filemap.c | 23 ++++++++++++++++++-- 4 files changed, 73 insertions(+), 48 deletions(-) -- 2.26.2