From patchwork Tue Jul 7 14:44:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Gruenbacher X-Patchwork-Id: 11648823 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AEBDB618 for ; Tue, 7 Jul 2020 14:45:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 729C120786 for ; Tue, 7 Jul 2020 14:45:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bPVsPRzZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 729C120786 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 80C448D000A; Tue, 7 Jul 2020 10:45:10 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7BB008D0007; Tue, 7 Jul 2020 10:45:10 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6AAAA8D000A; Tue, 7 Jul 2020 10:45:10 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 5686C8D0007 for ; Tue, 7 Jul 2020 10:45:10 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 08D4433C4 for ; Tue, 7 Jul 2020 14:45:10 +0000 (UTC) X-FDA: 77011552380.22.copy83_3a16bea26eb5 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id 3095B18038E79 for ; Tue, 7 Jul 2020 14:45:08 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,agruenba@redhat.com,,RULES_HIT:30054:30070,0,RBL:205.139.110.120:@redhat.com:.lbl8.mailshell.net-66.10.201.10 62.18.0.100;04yrtoxhb4naifnq15yumhuajicfpopyyrardsj7hhc199rirqfmbik1pwc8ypy.a5a181e7ewxnurxcin3c7ordxkdzuogfwdsok3bajwqca5c8j4xrpmb6okkpjqf.1-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: copy83_3a16bea26eb5 X-Filterd-Recvd-Size: 2510 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 7 Jul 2020 14:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594133107; 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=bPVsPRzZzAQw+UQmQBaA6jN8i/OpSVCre3HK3pQ1U7gbVOvO3uWg6LoLQNKyb+3m87s08J PY72E/GtNBlePHraFXqiJ1dnSNSJIoRSZD9Wa0j0YTTvaKmMh+TXSjPGKG2L0hIcLXNWki TZy46DOjyNxZf3zl3nC4mwwsNaTwtrA= 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 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Rspamd-Queue-Id: 3095B18038E79 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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(-)