From patchwork Fri Jul 3 09:53:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Gruenbacher X-Patchwork-Id: 11641597 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 04A1160D for ; Fri, 3 Jul 2020 09:53:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BCBE02100A for ; Fri, 3 Jul 2020 09:53:38 +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="QPwdSNyl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BCBE02100A 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 BA1038D0036; Fri, 3 Jul 2020 05:53:35 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AF2D28D0068; Fri, 3 Jul 2020 05:53:35 -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 80CED8D0036; Fri, 3 Jul 2020 05:53:35 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0050.hostedemail.com [216.40.44.50]) by kanga.kvack.org (Postfix) with ESMTP id 6455C8D0066 for ; Fri, 3 Jul 2020 05:53:35 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 20710180AD80F for ; Fri, 3 Jul 2020 09:53:35 +0000 (UTC) X-FDA: 76996302390.29.cars19_0a0929d26e91 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 0109018086CA8 for ; Fri, 3 Jul 2020 09:53:34 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,agruenba@redhat.com,,RULES_HIT:30054,0,RBL:207.211.31.120:@redhat.com:.lbl8.mailshell.net-66.10.201.10 62.18.0.100;04yf4crmdoiuphkayfkbs1xs6kd6socs5gwcygcs5g58ecmmsjhcjhxg63mx463.z7orszdmbrjr7bgyy79pngem4ti17jmjki6wucgne13fybr7ro4p5rhe6wjx7fu.r-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:22,LUA_SUMMARY:none X-HE-Tag: cars19_0a0929d26e91 X-Filterd-Recvd-Size: 2517 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Fri, 3 Jul 2020 09:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593770014; 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=0PGiJVpJLRg1xkJmVjcLSvVDlRTvj62k3+35QdFjYI8=; b=QPwdSNylWAwmhNcqXkpHDnuljznyAyNPSy3P/eEuv1d7ywZukm5UrKbitqwNkGzbBy9z4k tj9gM0r1Dw40dApeNcetN6RRi8hll//OAqUv3rmNt0SLGOtcNq3Mu2697M+feIJIdAyG5X b3DAYRqvUCaFIGmrV6sKe4j+6sVz98o= 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-307-lP1u1ZQFMk6FNoHo3j0ckA-1; Fri, 03 Jul 2020 05:53:30 -0400 X-MC-Unique: lP1u1ZQFMk6FNoHo3j0ckA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E24DF800401; Fri, 3 Jul 2020 09:53:28 +0000 (UTC) Received: from max.home.com (unknown [10.40.192.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0ED9C6111F; Fri, 3 Jul 2020 09:53:26 +0000 (UTC) From: Andreas Gruenbacher To: Linus Torvalds Cc: Matthew Wilcox , Dave Chinner , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andreas Gruenbacher Subject: [RFC v2 0/2] Fix gfs2 readahead deadlocks Date: Fri, 3 Jul 2020 11:53:23 +0200 Message-Id: <20200703095325.1491832-1-agruenba@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Rspamd-Queue-Id: 0109018086CA8 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: Here's an improved version. If the IOCB_NOIO flag can be added right away, we can just fix the locking in gfs2. Thanks, Andreas 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 | 17 +++++++++++++-- 4 files changed, 67 insertions(+), 48 deletions(-)