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.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 6499AC33CB6 for ; Fri, 17 Jan 2020 10:51:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 05D6A2053B for ; Fri, 17 Jan 2020 10:51:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UcD7lZoq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05D6A2053B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 603476B035B; Fri, 17 Jan 2020 05:51:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B55D6B035C; Fri, 17 Jan 2020 05:51:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 47A1B6B035D; Fri, 17 Jan 2020 05:51:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0029.hostedemail.com [216.40.44.29]) by kanga.kvack.org (Postfix) with ESMTP id 2E10E6B035B for ; Fri, 17 Jan 2020 05:51:11 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id A8DE8181AEF09 for ; Fri, 17 Jan 2020 10:51:10 +0000 (UTC) X-FDA: 76386809100.20.pig51_2754d1596af5d X-HE-Tag: pig51_2754d1596af5d X-Filterd-Recvd-Size: 3663 Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Fri, 17 Jan 2020 10:51:10 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id c16so25478338ioh.6 for ; Fri, 17 Jan 2020 02:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zPZgl/q3vIfnV2rf1MzWjb5AG5EqjQJkR1tLQ7+HViE=; b=UcD7lZoqdCKmmyidin5ILgMNLGITtnWVYg5U6qgBN3OKJX9tnuHAfbgsm8JJqgjRhx zocBJnxCLiRNbzmMpNQkCA9HZmsA65yWUcLaPWycg3x6g/HQQplFsvlb3N92Gj+D391I saehgHhAJBVNwhrQzHQsn6UL2Hro4bjML1DZsWY7Q5CDRgV9YbjLOI0ZkEaCngGQ0KPD CpDX4S3btG+Nbu6WAZTJEH5O409++Wycn/hxUG+a+ifCjIg/M6S7fd60qWGKcNwghhEc WZ5PUXt2oGFCQFKzcDvY8KhZvdmim0nBgYyEz/R2OKHh+mwN1TvhPaaBnMFXVs5ti/CH J0+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zPZgl/q3vIfnV2rf1MzWjb5AG5EqjQJkR1tLQ7+HViE=; b=hHieqS8kXQd/mDEvm3Ga2aD8ZAWH7E9W0wMVu//LLYc9uTiiS42An0AS97Ijxv8cjC gzBsPXPw3X2NJmCkpby+GB9kVcg99Ff5EtXNQgIcEH2XaYLyMgv9LLKT0mFzfJ1WPRok ORBEhDS7j55krIGD4Uk27/C5c5PHDrLUAjlCfU7gl2nVw/5q90RWA0HichO7cAtOSm3b JTEmYi/7m9LqBGPWlSAGA3Z0GhiAWMRd+F2dUyMqoCu/ovTxTBxPdpyz/SHjLWUerdn9 qzN9u79bkW5tGKQkj72m7LjgvUJXioWkSis4q+LH30fmp4UzZS1ig5iwLwmR9SO/Bex5 9O9w== X-Gm-Message-State: APjAAAW/29aLKTSFNMJgYN9Flk1drD8RHVc7a/UH/nrqAFAyC/16VWKY hlQ4eoslfPETECQbWLc4jm9WiV2VdiJH61Fatf4= X-Google-Smtp-Source: APXvYqysK2eTf49GiafHKvgR56da2irbgyCZ+FgusY/y8P/HNItR2DbQCVbsqL5oLa8EtQK2WbVUzonQKs1oPXlLUkU= X-Received: by 2002:a5e:9907:: with SMTP id t7mr30947541ioj.72.1579258269524; Fri, 17 Jan 2020 02:51:09 -0800 (PST) MIME-Version: 1.0 References: <20190829131034.10563-1-jack@suse.cz> In-Reply-To: <20190829131034.10563-1-jack@suse.cz> From: Amir Goldstein Date: Fri, 17 Jan 2020 12:50:58 +0200 Message-ID: Subject: Re: [PATCH 0/3 v2] xfs: Fix races between readahead and hole punching To: Jan Kara Cc: linux-xfs , Linux MM , "Darrick J. Wong" , Boaz Harrosh , linux-fsdevel , Matthew Wilcox , Jens Axboe Content-Type: text/plain; charset="UTF-8" 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: On Thu, Aug 29, 2019 at 4:10 PM Jan Kara wrote: > > Hello, > > this is a patch series that addresses a possible race between readahead and > hole punching Amir has discovered [1]. The first patch makes madvise(2) to > handle readahead requests through fadvise infrastructure, the third patch > then adds necessary locking to XFS to protect against the race. Note that > other filesystems need similar protections but e.g. in case of ext4 it isn't > so simple without seriously regressing mixed rw workload performance so > I'm pushing just xfs fix at this moment which is simple. > Jan, Could you give a quick status update about the state of this issue for ext4 and other fs. I remember some solutions were discussed. Perhaps this could be a good topic for a cross track session in LSF/MM? Aren't the challenges posed by this race also relevant for RWF_UNCACHED? Thanks, Amir.